:root {
  --teal: #7eb8a8;
  --teal-deep: #4a8f7e;
  --sand: #e8d5c4;
  --sand-warm: #d4b896;
  --coral: #d4846a;
  --navy: #1b2a4a;
  --navy-soft: #2a3d5c;
  --chalk: #f7f4ef;
  --ivory: #faf7f2;
  --ink: #1b2a4a;
  --muted: #5a6578;
  --rule: rgba(27, 42, 74, 0.18);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-paper: 0 12px 40px rgba(27, 42, 74, 0.08);
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 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.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(126, 184, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(232, 213, 196, 0.45), transparent 50%),
    linear-gradient(180deg, var(--chalk) 0%, #f0ebe3 48%, var(--chalk) 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0 0 0.55em; }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.85rem;
}

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

.section {
  padding: 4.5rem 0;
}

.section--sand {
  background: linear-gradient(135deg, rgba(232, 213, 196, 0.55), rgba(126, 184, 168, 0.12));
}

.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--chalk);
}

.section--navy h2,
.section--navy h3 {
  color: var(--chalk);
}

.section-title {
  margin-bottom: 1.75rem;
}

.section-intro {
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--navy);
  color: var(--chalk);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: transparent;
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--sand-warm);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--chalk);
  border-color: var(--navy);
}

.btn--sand {
  background: var(--sand);
  color: var(--navy);
  border-color: var(--sand);
}

.btn--sand:hover {
  background: transparent;
  color: var(--sand);
  border-color: var(--sand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-condensed {
  height: 3.4rem;
  background: rgba(247, 244, 239, 0.92);
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2.5rem));
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-header__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--sand-warm);
  border-radius: var(--radius);
}

.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.25rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  margin: 0.4rem 0;
  transition: transform 0.25s var(--ease);
}

/* Panels / cards */
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--ivory);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-paper);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(27, 42, 74, 0.12);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel ul {
  margin-bottom: 0;
  color: var(--muted);
}

/* Home hero — asymmetrical editorial */
.home-hero {
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.home-hero__copy {
  padding-bottom: 1.5rem;
}

.home-hero__copy h1 {
  max-width: 12ch;
}

.home-hero__aside {
  font-size: 1.05rem;
  color: var(--muted);
  border-left: 2px solid var(--teal);
  padding-left: 1.25rem;
  margin: 1.5rem 0 2rem;
  max-width: 28rem;
}

.home-hero__media {
  position: relative;
}

.home-hero__media img {
  width: 100%;
  height: min(68vh, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-paper);
  transform: translateY(0);
  transition: transform 0.6s var(--ease);
}

.home-hero__caption {
  position: absolute;
  left: -1.5rem;
  bottom: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 0.85rem 1.1rem;
  max-width: 14rem;
  font-size: 0.88rem;
  color: var(--muted);
  box-shadow: var(--shadow-paper);
}

.home-hero__caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

/* Offset band */
.offset-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.offset-band__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}

.offset-band__body {
  padding-top: 2rem;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: -1.6rem -1.5rem 1.1rem;
  width: calc(100% + 3rem);
  max-width: none;
}

.service-card h3 {
  font-size: 1.4rem;
}

.service-card p {
  color: var(--muted);
  flex: 1;
  font-size: 0.98rem;
}

.service-card__meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Reviews */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.quote {
  margin: 0;
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}

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

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.process-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.process-list__num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--coral);
  line-height: 1;
}

/* Pricing */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ivory);
  border: 1px solid var(--rule);
}

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

.fee-table th {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  background: rgba(126, 184, 168, 0.15);
}

.fee-note {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Page heroes */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero--compact {
  padding-bottom: 1rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-split__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
}

/* Blog */
.post-list {
  display: grid;
  gap: 1.75rem;
}

.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.post-cover {
  margin: 0 auto 2.5rem;
}

.post-cover img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.post-meta {
  color: var(--muted);
}

.post-nav {
  padding-bottom: 4rem;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.prose th {
  background: rgba(126, 184, 168, 0.12);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .error-msg {
  color: #9b3b2e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.is-invalid .error-msg {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #9b3b2e;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(126, 184, 168, 0.25);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(212, 132, 106, 0.25);
  color: #6b2e22;
}

.contact-details {
  padding: 1.5rem;
}

.contact-details dt {
  font-weight: 600;
  margin-top: 1rem;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: rgba(247, 244, 239, 0.82);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(247, 244, 239, 0.82);
  padding: 4rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--sand);
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.2fr;
  gap: 2rem;
}

.site-footer__mark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--chalk);
  margin: 0 0 0.75rem;
}

.site-footer__tag {
  font-size: 0.95rem;
  max-width: 22rem;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}

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

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

.site-footer__contact {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ornament {
  color: var(--coral);
  margin: 1.25rem 0 0;
}

.newsletter {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 239, 0.15);
}

.newsletter p {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

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

.newsletter__form input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(247, 244, 239, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--chalk);
  font: inherit;
}

.newsletter__form input::placeholder {
  color: rgba(247, 244, 239, 0.45);
}

.site-footer__base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 200;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(27, 42, 74, 0.18);
  padding: 1.25rem 1.4rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner__text h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 28rem;
}

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

.cookie-banner__error {
  color: #9b3b2e;
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

/* Story / case */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.story-block img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0 5rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Fieldwork page */
.timeline {
  position: relative;
  margin: 2rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--teal);
}

.timeline__item {
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.timeline__item h3 {
  margin-bottom: 0.35rem;
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero__grid,
  .offset-band,
  .hero-split,
  .quote-grid,
  .contact-layout,
  .scope-grid,
  .story-block,
  .card-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .home-hero__caption {
    left: 1rem;
  }

  .site-header__toggle {
    display: block;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-header__nav.is-open {
    display: block;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel:hover,
  .home-hero__media img {
    transform: none;
  }
}
