:root {
  --ink: #1d2522;
  --muted: #5b6760;
  --line: #d9ddd5;
  --paper: #faf9f4;
  --soft: #f0eee5;
  --rosewood: #6f2f2f;
  --rosewood-dark: #3f2420;
  --green: #607765;
  --clear: #f7fbf9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 38, 34, 0.13);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(250, 249, 244, 0.96);
  box-shadow: 0 8px 28px rgba(29, 37, 34, 0.1);
  backdrop-filter: blur(14px);
}

.subpage-header {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: transform 180ms ease;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(29, 37, 34, 0.18);
}

.brand-text {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: #cbb98f;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #cbb98f;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: hero-settle 900ms ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(22, 26, 23, 0.78) 0%, rgba(22, 26, 23, 0.48) 43%, rgba(22, 26, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(22, 26, 23, 0.24), rgba(22, 26, 23, 0.06));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #d8c99f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--rosewood);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 128px) 0 clamp(48px, 7vw, 78px);
}

.page-hero h1 {
  max-width: 900px;
  color: var(--ink);
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button::after {
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

.button.is-clicked::after {
  animation: click-pulse 420ms ease-out;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--rosewood-dark);
  box-shadow: 0 12px 28px rgba(63, 36, 32, 0.22);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.band {
  background: var(--soft);
}

.intro,
.services,
.approach,
.standards,
.contact {
  padding: clamp(70px, 9vw, 112px) clamp(20px, 4vw, 52px);
}

.section-grid,
.section-heading,
.service-grid,
.process-list,
.standards-panel,
.contact-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.section-grid > p,
.contact-layout > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.image-showcase {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(64px, 8vw, 96px) auto 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 16px;
}

.image-showcase figure,
.page-image-section,
.contact-image {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-showcase figure,
.page-image-section {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.image-showcase figure:hover,
.page-image-section:hover {
  box-shadow: 0 24px 58px rgba(31, 38, 34, 0.18);
  transform: translateY(-4px);
}

.image-showcase figure {
  min-height: 260px;
  background: var(--soft);
}

.image-showcase img,
.page-image-section img,
.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 220ms ease;
}

.image-showcase figure:hover img,
.page-image-section:hover img,
.contact-image:hover {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.035);
}

.showcase-large {
  grid-row: span 2;
}

.page-image-section {
  width: min(var(--max), calc(100% - 40px));
  height: clamp(260px, 42vw, 500px);
  margin: 0 auto clamp(54px, 8vw, 88px);
  background: var(--soft);
}

.contact-image {
  display: block;
  height: clamp(230px, 28vw, 360px);
  margin-top: 30px;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.contact-details p,
.contact-details address {
  margin: 0;
}

.contact-details address {
  color: var(--muted);
  font-style: normal;
}

.contact-details a,
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(29, 37, 34, 0.03);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.interactive-panel:hover,
.interactive-panel:focus-visible,
.interactive-panel.is-selected {
  border-color: #cbb98f;
  box-shadow: 0 16px 38px rgba(31, 38, 34, 0.12);
  transform: translateY(-4px);
}

.interactive-panel:focus-visible {
  outline: 3px solid rgba(203, 185, 143, 0.72);
  outline-offset: 4px;
}

.interactive-panel.is-selected {
  background: var(--clear);
}

.service-card p,
.process-list p,
.standards-list p {
  margin: 0;
  color: var(--muted);
}

.service-card h2,
.process-list h2 {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.25;
}

.card-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  border: 1px solid #cbb98f;
  background:
    linear-gradient(135deg, transparent 47%, #cbb98f 48%, #cbb98f 52%, transparent 53%),
    linear-gradient(45deg, transparent 47%, var(--rosewood) 48%, var(--rosewood) 52%, transparent 53%);
  transition: transform 180ms ease, background 180ms ease;
}

.interactive-panel:hover .card-icon,
.interactive-panel:focus-visible .card-icon,
.interactive-panel.is-selected .card-icon {
  transform: rotate(45deg);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #cbd1c7;
  border: 1px solid #cbd1c7;
}

.process-list article {
  min-height: 235px;
  padding: 30px;
  background: var(--paper);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.process-list span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--rosewood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.standards {
  background: var(--paper);
}

.standards-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--clear);
  box-shadow: var(--shadow);
}

.standards-list {
  display: grid;
  gap: 18px;
  align-content: center;
}

.standards-list p {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, transform 160ms ease;
}

.standards-list p:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.standards-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.76fr);
  gap: clamp(30px, 7vw, 94px);
  align-items: start;
}

.detail-section {
  padding: clamp(70px, 9vw, 112px) clamp(20px, 4vw, 52px);
}

.detail-grid {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 80px);
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

.detail-list p:first-child {
  padding-top: 0;
}

.detail-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.contact-form:focus-within {
  box-shadow: 0 24px 58px rgba(31, 38, 34, 0.16);
  transform: translateY(-2px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd1c7;
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

input:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(203, 185, 143, 0.72);
  outline-offset: 3px;
}

input:focus,
textarea:focus {
  border-color: #cbb98f;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #cbb98f;
}

@keyframes hero-settle {
  from {
    transform: scale(1.035);
  }

  to {
    transform: scale(1);
  }
}

@keyframes click-pulse {
  0% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(34);
  }
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-large {
    grid-row: auto;
  }

  .section-grid,
  .standards-panel,
  .contact-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    max-width: 185px;
    font-size: 11px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 18px 18px;
    color: var(--ink);
    background: rgba(250, 249, 244, 0.98);
    box-shadow: 0 18px 32px rgba(29, 37, 34, 0.11);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 88vh;
    align-items: end;
  }

  .hero-content {
    width: min(100% - 36px, var(--max));
    padding: 104px 0 58px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
