:root {
  --color-chalk: #f7f4ef;
  --color-white: #fffcf8;
  --color-teal: #5f9e96;
  --color-teal-deep: #3f7a73;
  --color-coral: #d4897a;
  --color-dune: #e8dcc8;
  --color-navy: #1a2744;
  --color-navy-soft: #2a3a5c;
  --color-ink: #152033;
  --color-muted: #5c6578;
  --color-line: rgba(26, 39, 68, 0.14);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-paper: 0 10px 30px rgba(26, 39, 68, 0.08);
  --header-h: 4.25rem;
  --max: 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(95, 158, 150, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 137, 122, 0.12), transparent 45%),
    linear-gradient(180deg, var(--color-chalk) 0%, #f0ebe3 48%, var(--color-chalk) 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.18;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

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

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

.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;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.btn--navy:hover {
  background: var(--color-navy-soft);
  color: var(--color-white);
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--teal:hover {
  background: var(--color-teal-deep);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-line);
}

.btn--ghost:hover {
  background: rgba(255, 252, 248, 0.7);
}

.text-link {
  position: relative;
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: rgba(255, 252, 248, 0.8);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-navy);
}

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

.site-header__list a {
  text-decoration: none;
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-header__cta {
  background: var(--color-navy);
  color: var(--color-white) !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
}

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

/* Hero variants */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-coral);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__media {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-paper);
  min-height: 22rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  transform: scale(1.06);
  will-change: transform;
}

.hero__media[data-parallax] img {
  transition: transform 0.1s linear;
}

.hero--band {
  padding: 0;
}

.hero--band .hero__band-media {
  min-height: min(68vh, 36rem);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero--band .hero__band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.72) 0%, rgba(26, 39, 68, 0.35) 55%, rgba(26, 39, 68, 0.15) 100%);
}

.hero--band .hero__band-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3.5rem 0;
}

.hero--band .hero__band-copy .wrap {
  color: var(--color-white);
}

.hero--band h1,
.hero--band .hero__eyebrow {
  color: var(--color-white);
}

.hero--band .hero__lede {
  color: rgba(255, 252, 248, 0.88);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

.page-hero__lede {
  max-width: 38rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--tint {
  background: rgba(232, 220, 200, 0.35);
}

.section--teal {
  background: linear-gradient(160deg, rgba(95, 158, 150, 0.16), rgba(247, 244, 239, 0.2));
}

.section__header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  align-items: end;
}

.section__header p {
  color: var(--color-muted);
  margin: 0;
}

.section__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-teal-deep);
  margin-bottom: 0.5rem;
}

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

.card {
  background: var(--color-white);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 39, 68, 0.12);
}

.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;
}

.card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.card--tint {
  background: rgba(95, 158, 150, 0.1);
}

.card--coral {
  background: rgba(212, 137, 122, 0.1);
}

/* Asymmetric editorial blocks */
.editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.editorial--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.editorial__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-paper);
}

.editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

.quote-block {
  border-left: 3px solid var(--color-coral);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

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

/* Pricing */
.price-list {
  display: grid;
  gap: 1rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}

.price-row__fee {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-navy);
  text-align: right;
}

.note-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(232, 220, 200, 0.45);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

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

.review--wide {
  grid-column: 1 / -1;
}

.review__meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form__row {
  display: grid;
  gap: 0.4rem;
}

.form__row--2 {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: var(--color-white);
  font: inherit;
  color: var(--color-ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.field-error {
  color: #9b3b2e;
  font-size: 0.88rem;
  margin: 0;
}

.form-message {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
}

.form-message--success {
  background: rgba(95, 158, 150, 0.2);
  color: var(--color-navy);
}

.form-message--error {
  background: rgba(212, 137, 122, 0.25);
  color: #6d2f26;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

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

.contact-card a {
  color: var(--color-dune);
}

.contact-card address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 252, 248, 0.88);
  margin-top: 3rem;
  padding: 3.5rem 0 0;
}

.site-footer a {
  color: rgba(255, 252, 248, 0.88);
  text-decoration: none;
}

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

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

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

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

.site-footer__col li {
  margin-bottom: 0.5rem;
}

.site-footer__address {
  font-style: normal;
  margin: 1rem 0 0.75rem;
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.newsletter-form input {
  background: rgba(255, 252, 248, 0.08);
  border-color: rgba(255, 252, 248, 0.2);
  color: var(--color-white);
}

.site-footer__base {
  border-top: 1px solid rgba(255, 252, 248, 0.12);
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

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

.site-footer__copy {
  margin: 0;
  width: 100%;
  color: rgba(255, 252, 248, 0.6);
  font-size: 0.85rem;
}

/* Cookie banner */
.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-white);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

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

/* Legal / prose */
.prose {
  max-width: 46rem;
}

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

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

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

.prose th {
  background: rgba(232, 220, 200, 0.45);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--color-white);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.detail-list dt {
  font-weight: 700;
  color: var(--color-navy);
}

.detail-list dd {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
}

.cta-band {
  padding: 3rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-soft));
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.cta-band h2 {
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 252, 248, 0.85);
  max-width: 32rem;
}

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

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

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

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

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

/* Responsive */
@media (max-width: 960px) {
  .hero--split,
  .editorial,
  .editorial--reverse,
  .section__header,
  .contact-grid,
  .site-footer__inner,
  .price-row {
    grid-template-columns: 1fr;
  }

  .price-row__fee {
    text-align: left;
  }

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

  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.96);
    border-bottom: 1px solid var(--color-line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

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

@media (max-width: 640px) {
  .card-grid,
  .team-grid,
  .review-grid,
  .form__row--2 {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: none;
  }
}
