:root {
  --color-limestone: #F3EBDD;
  --color-teal: #2F6F6D;
  --color-teal-deep: #245856;
  --color-clay: #B8573B;
  --color-clay-deep: #9a4630;
  --color-ink: #1F2430;
  --color-sage: #D7E1D4;
  --color-paper: #faf6ef;
  --color-muted: #5c6470;
  --color-border: rgba(31, 36, 48, 0.12);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(31, 36, 48, 0.08), 0 1px 0 rgba(31, 36, 48, 0.04);
  --shadow-lift: 0 14px 28px rgba(31, 36, 48, 0.14);
  --header-h: 4.25rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(215, 225, 212, 0.7), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 111, 109, 0.08), transparent 50%),
    var(--color-limestone);
  min-height: 100vh;
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-clay);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.2rem; }

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

.narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--color-teal);
  color: #fff;
  box-shadow: 0 2px 0 rgba(31, 36, 48, 0.12);
}

.btn--primary:hover {
  background: var(--color-teal-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn--accent {
  background: var(--color-clay);
  color: #fff;
}

.btn--accent:hover {
  background: var(--color-clay-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn--secondary,
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn--ghost {
  background: rgba(243, 235, 221, 0.35);
  border-color: rgba(243, 235, 221, 0.55);
  color: var(--color-ink);
}

.btn--secondary:hover,
.btn--ghost:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-solid {
  background: rgba(243, 235, 221, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header__nav a:hover {
  color: var(--color-teal);
}

.site-header__cta {
  background: var(--color-teal);
  color: #fff !important;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
}

.site-header__cta:hover {
  background: var(--color-teal-deep);
  color: #fff !important;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: var(--color-paper);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section--sage {
  background: linear-gradient(180deg, rgba(215, 225, 212, 0.55), rgba(215, 225, 212, 0.2));
}

.section--ink {
  background: var(--color-ink);
  color: var(--color-limestone);
}

.section--ink .eyebrow { color: var(--color-sage); }
.section--ink a { color: var(--color-sage); }
.section--ink .lead { color: rgba(243, 235, 221, 0.75); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split--reverse > :first-child { order: 2; }

.hero-home {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-home__bg {
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(52vw, 34rem);
  height: min(52vw, 34rem);
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(145deg, rgba(47, 111, 109, 0.18), rgba(184, 87, 59, 0.12));
  filter: blur(2px);
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-2%, 4%, 0) rotate(8deg); }
}

.hero-home__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.hero-home__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.hero-home__copy h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.hero-home__visual {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  aspect-ratio: 5 / 4;
}

.hero-home__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  color: var(--color-muted);
  flex: 1;
}

.card__link {
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-teal);
}

.panel {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.facts {
  margin: 0 0 1.25rem;
}

.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.facts dt {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.facts dd {
  margin: 0;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.steps__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.quote {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.full-bleed {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.full-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed__content {
  position: relative;
  z-index: 1;
  background: rgba(31, 36, 48, 0.72);
  color: var(--color-limestone);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 36rem;
  margin: 2rem;
  text-align: center;
}

.full-bleed__content .eyebrow { color: var(--color-sage); }
.full-bleed__content p { color: rgba(243, 235, 221, 0.85); }

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.page-hero figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.page-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.pricing-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(215, 225, 212, 0.55);
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.story img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(47, 111, 109, 0.35);
  border-color: var(--color-teal);
}

.field-error {
  color: var(--color-clay);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.1em;
}

.form-status {
  margin: 0.25rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  font-weight: 500;
}

.form-status.is-success {
  background: rgba(215, 225, 212, 0.8);
  color: var(--color-teal-deep);
}

.form-status.is-error {
  background: rgba(184, 87, 59, 0.12);
  color: var(--color-clay-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--color-ink);
  color: var(--color-limestone);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card a { color: var(--color-sage); }
.contact-card h2 { color: #fff; }

.legal {
  padding: 3rem 0 5rem;
}

.legal__intro {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 40rem;
}

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: rgba(215, 225, 212, 0.45); }

.post__hero {
  padding: 3rem 0 1rem;
}

.post__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.post__cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.post__cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post__date {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.post__body {
  padding: 2.5rem 0 1rem;
}

.post__foot {
  padding-bottom: 4rem;
}

.service-detail__hero {
  padding: 3rem 0 1rem;
}

.service-detail__hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.service-detail__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.service-detail__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cta-line {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: rgba(215, 225, 212, 0.55);
  border-radius: var(--radius);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.site-footer {
  background: var(--color-ink);
  color: rgba(243, 235, 221, 0.82);
  margin-top: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--color-limestone);
  font-family: var(--font-serif);
}

.site-footer a {
  color: rgba(243, 235, 221, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-sage);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 0.45rem; }

.site-footer__band {
  border-top: 1px solid rgba(243, 235, 221, 0.12);
  padding: 1.5rem 0 2rem;
}

.site-footer__band-inner {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  gap: 1.5rem;
  align-items: end;
}

.newsletter label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 12rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 235, 221, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-limestone);
  font: inherit;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  justify-content: flex-end;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 42rem;
  margin-inline: auto;
}

.cookie-banner__inner {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 960px) {
  .hero-home__grid,
  .split,
  .split--reverse > :first-child,
  .page-hero--split,
  .quote-grid,
  .contact-grid,
  .post__hero-grid,
  .service-detail__hero-grid,
  .story,
  .site-footer__grid,
  .site-footer__band-inner,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child { order: 0; }

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

  .site-header__toggle { display: flex; }

  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(243, 235, 221, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .site-header__nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-home { min-height: auto; }
  .hero-home__brand { max-width: none; }
}

@media (min-width: 700px) and (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
