:root {
  --salt: #f7f4ef;
  --salt-deep: #efe9df;
  --dune: #d9cfc0;
  --teal: #7ba8a0;
  --teal-deep: #4f7f78;
  --navy: #1b3a4b;
  --navy-soft: #2a5163;
  --coral: #e07a5f;
  --coral-deep: #c45d43;
  --ink: #1f2a30;
  --muted: #5c6b73;
  --paper: #fffcf8;
  --shadow: 0 12px 36px rgba(27, 58, 75, 0.08);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;
  --header-h: 4.5rem;
  --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.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(123, 168, 160, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(224, 122, 95, 0.12), transparent 36%),
    linear-gradient(180deg, var(--salt) 0%, var(--salt-deep) 48%, var(--salt) 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;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; }

.visually-hidden {
  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;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  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--navy {
  background: var(--navy);
  color: var(--salt);
}

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

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

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

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

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

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

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

.btn--compact {
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
}

.section {
  padding: 5rem 0;
}

.section--tint {
  background: rgba(217, 207, 192, 0.35);
}

.section--narrow {
  padding: 3.5rem 0;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.paper-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 58, 75, 0.08);
  padding: 1.6rem;
}

.paper-card--rule {
  border-top: 3px solid var(--teal);
}

/* 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,
body:not(.has-hero) .site-header {
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(27, 58, 75, 0.08);
}

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

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  justify-self: start;
}

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

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

.header-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--navy);
  margin: 0.28rem 0;
}

/* Home hero — asymmetrical magazine */
.home-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) 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(27, 58, 75, 0.28) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - var(--header-h) - 4rem);
}

.home-hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: var(--navy);
  margin: 0 0 1.2rem;
  max-width: 12ch;
}

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

.home-hero__aside {
  background: rgba(255, 252, 248, 0.88);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(27, 58, 75, 0.1);
  box-shadow: var(--shadow);
  align-self: center;
}

.home-hero__aside h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

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

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

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

.page-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

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

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

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

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.offer-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.offer-card h3 {
  margin-bottom: 0.4rem;
}

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

.offer-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.quote-block {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--navy);
  border-left: 3px solid var(--coral);
  padding-left: 1.2rem;
}

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

.journal-list {
  display: grid;
  gap: 1.5rem;
}

.journal-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  align-items: center;
}

.journal-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.journal-item h3 a {
  color: inherit;
  text-decoration: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

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

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

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

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

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

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

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

.form-status {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

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

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

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

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

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(27, 58, 75, 0.08);
}

.rate-table th {
  background: rgba(123, 168, 160, 0.18);
  font-weight: 600;
  color: var(--navy);
}

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

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

.review-card blockquote {
  margin: 0;
  font-size: 1.05rem;
}

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

.case-story {
  margin-top: 3rem;
}

.case-story + .case-story {
  margin-top: 2rem;
}

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.blog-card h2 {
  font-size: 1.55rem;
}

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

/* Post */
.post-page__hero {
  padding-top: calc(var(--header-h) + 2rem);
}

.post-page__intro {
  margin-bottom: 2rem;
}

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

.post-page__media {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  width: min(100% - 2.5rem, var(--max));
}

.post-page__media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.prose {
  max-width: 42rem;
}

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

.post-page__cta {
  margin: 3rem auto 5rem;
  padding: 1.8rem;
  background: rgba(123, 168, 160, 0.18);
  border-radius: var(--radius);
  max-width: 42rem;
}

/* Briefings custom page */
.briefing-timeline {
  display: grid;
  gap: 1.2rem;
}

.briefing-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(27, 58, 75, 0.12);
}

.briefing-item__date {
  font-size: 0.85rem;
  color: var(--coral-deep);
  font-weight: 600;
}

/* Legal */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-page .prose {
  max-width: 48rem;
}

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

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(27, 58, 75, 0.15);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: rgba(217, 207, 192, 0.45);
}

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

/* Footer */
.site-footer {
  background: linear-gradient(180deg, rgba(27, 58, 75, 0.92), #152e3c);
  color: rgba(247, 244, 239, 0.88);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

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

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

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

.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--salt);
  margin-bottom: 0.6rem;
}

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

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

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

.site-footer__address {
  font-style: normal;
  margin-top: 1rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

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

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

.site-footer__bottom {
  margin-top: 2.5rem;
}

.site-footer__rule {
  height: 1px;
  background: rgba(247, 244, 239, 0.18);
  margin-bottom: 1rem;
}

.site-footer__tag {
  color: rgba(247, 244, 239, 0.72);
}

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

.cookie-banner__inner {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(27, 58, 75, 0.18);
  border: 1px solid rgba(27, 58, 75, 0.1);
  padding: 1.3rem;
}

.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

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

.cookie-banner__error {
  color: var(--coral-deep);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

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

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.faq-list details {
  background: var(--paper);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(27, 58, 75, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.faq-list p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .home-hero__content,
  .page-hero--split .page-hero__grid,
  .asym,
  .asym--flip,
  .offer-grid,
  .quote-rail,
  .contact-layout,
  .site-footer__grid,
  .detail-grid,
  .blog-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: block;
    justify-self: start;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(12px);
    padding: 1.2rem 1.5rem 1.5rem;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

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

  .header-cta {
    display: none;
  }

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