:root {
  --salt: #f7f4ef;
  --salt-deep: #efe9e0;
  --dune: #d9cbb8;
  --teal: #4a8f8a;
  --teal-deep: #2f6b67;
  --navy: #1b3a4b;
  --navy-soft: #2a5163;
  --coral: #e07a5f;
  --coral-deep: #c45f45;
  --ink: #1a2a33;
  --muted: #5c6b73;
  --paper: #fffdf9;
  --rule: rgba(27, 58, 75, 0.12);
  --shadow: 0 14px 40px rgba(27, 58, 75, 0.08);
  --radius: 18px;
  --font-serif: "Libre Bodoni", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 143, 138, 0.08), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(224, 122, 95, 0.07), transparent 28%),
    linear-gradient(180deg, var(--salt) 0%, var(--salt-deep) 48%, var(--salt) 100%);
  line-height: 1.65;
  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);
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.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));
  margin-inline: auto;
}

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
}

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

.section--tint {
  background: rgba(255, 253, 249, 0.72);
  border-block: 1px solid var(--rule);
}

.section--dune {
  background: linear-gradient(135deg, rgba(217, 203, 184, 0.35), rgba(232, 244, 242, 0.5));
}

.page-header {
  padding: clamp(7rem, 14vw, 9rem) 0 2rem;
}

.page-header .lead { margin-bottom: 0; }

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

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

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

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

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

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

.btn--coral {
  background: var(--coral);
  color: var(--paper);
}

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

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 58, 75, 0.28);
}

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

.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

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

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

.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  text-align: center;
  justify-self: center;
}

.wordmark--footer {
  display: block;
  text-align: left;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

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

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

.site-nav a:hover,
.site-header__actions a:not(.btn):hover {
  color: var(--teal-deep);
}

.site-header__actions {
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero--home .hero__media,
.hero--service .hero__media,
.hero--page .hero__media {
  position: absolute;
  inset: 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.18) 0%, rgba(27, 58, 75, 0.55) 48%, rgba(27, 58, 75, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero__content .eyebrow { color: var(--dune); }
.hero__content h1 { color: var(--paper); max-width: 14ch; }
.hero__content .lead { color: rgba(247, 244, 239, 0.88); }
.hero__content .btn--ghost {
  color: var(--paper);
  border-color: rgba(247, 244, 239, 0.45);
}
.hero__content .btn--ghost:hover {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.hero--split {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.hero--split::after { display: none; }

.hero--split .hero__copy {
  padding: clamp(7rem, 12vw, 9rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero--split .hero__media {
  position: relative;
  min-height: 520px;
}

.hero--split .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.kicker-line {
  width: 3.5rem;
  height: 2px;
  background: var(--coral);
  margin: 0 0 1.25rem;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

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

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

.card__meta {
  font-size: 0.8rem;
  color: var(--teal-deep);
  font-weight: 600;
}

.card a.card-link {
  text-decoration: none;
  color: inherit;
}

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

/* Asymmetric editorial blocks */
.asym {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.asym--flip {
  grid-template-columns: 0.9fr 1.1fr;
}

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

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

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.panel--tint {
  background: rgba(74, 143, 138, 0.08);
}

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

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

.quote-block cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Services / blog lists */
.list-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.service-aside {
  position: sticky;
  top: 6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.aside-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.aside-list strong {
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  background: rgba(27, 58, 75, 0.06);
  color: var(--navy);
  font-weight: 600;
}

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

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

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

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

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

.form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(27, 58, 75, 0.22);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

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

.form-field .error {
  color: var(--coral-deep);
  font-size: 0.85rem;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 500;
}

.form-status.is-success {
  background: rgba(74, 143, 138, 0.15);
  color: var(--teal-deep);
}

.form-status.is-error {
  background: rgba(224, 122, 95, 0.15);
  color: var(--coral-deep);
}

.contact-card address {
  font-style: normal;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.92), rgba(27, 58, 75, 0.98));
  color: rgba(247, 244, 239, 0.86);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.site-footer a { color: rgba(247, 244, 239, 0.9); }
.site-footer a:hover { color: #fff; }
.site-footer .wordmark { color: var(--paper); }

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

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dune);
  margin: 0 0 1rem;
}

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

.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { text-decoration: none; }

.footer-address {
  font-style: normal;
  line-height: 1.8;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(247, 244, 239, 0.15);
}

.newsletter-form .form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  border: 1px solid rgba(247, 244, 239, 0.25);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font: inherit;
}

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

.site-footer__bottom {
  padding-top: 1.25rem;
  font-size: 0.88rem;
  opacity: 0.75;
}

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

.cookie-banner__inner {
  width: min(100%, 920px);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

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

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

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

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

.back-link { margin-top: 2.5rem; }

.post-cover {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.story-block {
  display: grid;
  gap: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 143, 138, 0.12);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-table .amount {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
}

.briefing-list {
  display: grid;
  gap: 1.25rem;
}

.briefing-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.briefing-item strong {
  color: var(--navy);
}

.briefing-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid,
  .site-footer__grid,
  .prose-grid,
  .contact-layout,
  .review-grid,
  .footer-newsletter,
  .asym,
  .asym--flip,
  .hero--split {
    grid-template-columns: 1fr;
  }

  .hero--split .hero__media {
    min-height: 320px;
    order: -1;
  }

  .briefing-item {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: var(--shadow);
  }

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

  .site-header__actions a:not(.btn) { display: none; }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .list-intro { flex-direction: column; align-items: start; }
}

@media (max-width: 640px) {
  .hero__content h1 { max-width: none; }
  .cta-row .btn { width: 100%; }
}
