:root {
  --color-salt: #f7f4ef;
  --color-dune: #e8dfd0;
  --color-teal: #5b9a8b;
  --color-teal-deep: #3d7a6c;
  --color-navy: #1e3a4c;
  --color-navy-soft: #2a4f63;
  --color-coral: #c97b63;
  --color-ink: #1a2a33;
  --color-muted: #5c6b73;
  --color-paper: #fffcf7;
  --color-rule: rgba(30, 58, 76, 0.12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(30, 58, 76, 0.08);
  --shadow-press: 0 4px 12px rgba(30, 58, 76, 0.12);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --max-w: 1120px;
  --header-h: 4.25rem;
  --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-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 154, 139, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 123, 99, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-salt) 0%, var(--color-dune) 48%, var(--color-salt) 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-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin: 0 0 0.75rem;
}

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

.price-note {
  font-weight: 600;
  color: var(--color-navy);
  margin: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

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

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

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

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

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

.btn--ghost:hover {
  background: var(--color-navy);
  color: var(--color-salt);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-rule);
}

.site-header__inner {
  width: min(100% - 1.5rem, var(--max-w));
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
  text-align: center;
  justify-self: center;
}

.site-logo__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-coral);
}

.header-cta {
  justify-self: end;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
}

/* Home hero — asymmetrical editorial */
.home-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 244, 239, 0.94) 0%, rgba(247, 244, 239, 0.78) 42%, rgba(30, 58, 76, 0.25) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  min-height: calc(100vh - var(--header-h) - 7rem);
}

.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.home-hero__kicker {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 28rem;
  margin: 0;
}

.home-hero__aside {
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.home-hero__aside h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.home-hero__aside p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tint {
  background: rgba(232, 223, 208, 0.45);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-salt);
}

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

.section--navy .lede,
.section--navy p {
  color: rgba(247, 244, 239, 0.82);
}

.section__head {
  margin-bottom: var(--space-lg);
  max-width: 40rem;
}

.section__rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-lg) 0;
}

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

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

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

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

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

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

.card__body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

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

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

.card__link:hover {
  color: var(--color-coral);
}

/* Asym layout blocks */
.asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.asym--flip .asym__media {
  order: -1;
}

.asym__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-rule);
}

.asym__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.asym__text .lede {
  margin-bottom: 1.5rem;
}

/* Page heroes */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
}

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

.page-hero--post .post-hero__grid,
.page-hero--service .service-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.post-hero__media,
.service-hero__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-rule);
}

.post-hero__media img,
.service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Prose */
.prose {
  max-width: 42rem;
  padding-bottom: var(--space-xl);
}

.prose h2,
.prose h3 {
  margin-top: 2.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.legal-prose {
  max-width: 46rem;
}

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

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

.legal-prose th {
  background: var(--color-dune);
  color: var(--color-navy);
}

.service-body {
  max-width: 48rem;
}

/* Reviews */
.review-list {
  display: grid;
  gap: 1.5rem;
}

.review-card {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
}

.review-card blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--color-navy);
  font-weight: 500;
}

.review-card cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.review-card .service-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
}

.story-block {
  margin-top: var(--space-lg);
  padding: 2rem;
  background: rgba(91, 154, 139, 0.12);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-rule);
}

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

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

.pricing-table th {
  font-family: var(--font-display);
  background: var(--color-navy);
  color: var(--color-salt);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

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

.factor-panel h3 {
  margin-top: 0;
}

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

.team-card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-rule);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.team-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-coral);
  margin: 0 0 0.75rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

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

/* Briefings timeline */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.timeline__step {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-teal);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  padding-bottom: var(--space-xl);
}

.contact-card {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-card address {
  font-style: normal;
  margin: 1rem 0;
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  background: var(--color-salt);
  color: var(--color-ink);
  transition: border-color 0.2s;
}

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

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

.field-error {
  color: #9b3a2f;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

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

.form-message {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 500;
}

.form-message.is-success {
  background: rgba(91, 154, 139, 0.18);
  color: var(--color-teal-deep);
}

.form-message.is-error {
  background: rgba(201, 123, 99, 0.2);
  color: #8a3d2e;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #2a4f63 0%, var(--color-navy) 100%);
  color: rgba(247, 244, 239, 0.88);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.site-footer a {
  color: rgba(247, 244, 239, 0.88);
  text-decoration: none;
}

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

.site-footer h2 {
  font-size: 1rem;
  color: var(--color-salt);
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 244, 239, 0.15);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-salt);
  margin: 0 0 0.5rem;
}

.site-footer__tag {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.site-footer__address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1 1 160px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 244, 239, 0.25);
  background: rgba(247, 244, 239, 0.08);
  color: var(--color-salt);
  font: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(247, 244, 239, 0.55);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem;
}

.cookie-banner__inner {
  width: min(100%, 720px);
  margin-inline: auto;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__text h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 1.5rem 4rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0 0 0.5rem;
}

/* Post nav */
.post-nav {
  padding-bottom: var(--space-xl);
}

/* Inline error for JS islands */
.js-error {
  background: rgba(201, 123, 99, 0.2);
  color: #8a3d2e;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 960px) {
  .home-hero__content,
  .asym,
  .asym--flip,
  .card-grid,
  .team-grid,
  .contact-grid,
  .site-footer__grid,
  .post-hero__grid,
  .service-hero__grid,
  .pricing-factors {
    grid-template-columns: 1fr;
  }

  .asym--flip .asym__media {
    order: 0;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.85rem;
    border-bottom: 1px solid var(--color-rule);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .home-hero__content {
    min-height: auto;
  }

  .timeline__item {
    grid-template-columns: 3rem 1fr;
  }
}
