:root {
  --salt: #f7f5f1;
  --dune: #e8dfd2;
  --sea-glass: #5b8f8a;
  --sea-glass-deep: #3f6f6b;
  --navy: #1b3a4b;
  --navy-soft: #2a5166;
  --coral: #e07a5f;
  --coral-deep: #c9654a;
  --ink: #1a2429;
  --muted: #5c6a72;
  --paper: #fffcf8;
  --rule: rgba(27, 58, 75, 0.14);
  --shadow: 0 12px 40px rgba(27, 58, 75, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", 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-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(91, 143, 138, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 122, 95, 0.08), transparent 45%),
    linear-gradient(180deg, var(--salt) 0%, var(--dune) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0 0 0.45em; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  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--compact {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

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

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

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

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

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

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

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

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

/* 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, 245, 241, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}

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

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

.wordmark:hover { color: var(--sea-glass-deep); }

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

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

.site-nav a:hover,
.header-link:hover {
  color: var(--sea-glass-deep);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

/* Main offset */
main {
  padding-top: var(--header-h);
}

.has-hero main {
  padding-top: 0;
}

.has-hero .site-header:not(.is-scrolled) .wordmark,
.has-hero .site-header:not(.is-scrolled) .site-nav a,
.has-hero .site-header:not(.is-scrolled) .header-link {
  color: var(--salt);
}

.has-hero .site-header:not(.is-scrolled) .nav-toggle span {
  background: var(--salt);
}

.has-hero .site-header:not(.is-scrolled) .btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* Hero home */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--salt);
}

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

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

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.35) 0%, rgba(27, 58, 75, 0.55) 45%, rgba(27, 58, 75, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
}

.hero__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dune);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--salt);
  max-width: 14ch;
}

.hero__aside {
  border-left: 1px solid rgba(247, 245, 241, 0.35);
  padding-left: 1.75rem;
  padding-bottom: 0.5rem;
}

.hero__aside p {
  color: rgba(247, 245, 241, 0.9);
  font-size: 1.05rem;
}

.hero__cta {
  margin-top: 1.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea-glass-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

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

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section--tint {
  background: rgba(255, 252, 248, 0.65);
  border-block: 1px solid var(--rule);
  max-width: none;
  padding-inline: 0;
}

.section--tint .section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: end;
}

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

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

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

.card:hover {
  transform: translateY(-4px);
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

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

.card__body h3 {
  margin-bottom: 0.5rem;
}

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

.card__body h3 a:hover {
  color: var(--sea-glass-deep);
}

.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--rule);
}

/* Asymmetric feature */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.feature-split--reverse {
  direction: rtl;
}

.feature-split--reverse > * {
  direction: ltr;
}

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

.feature-split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

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

/* Page heroes */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

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

.page-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
  margin: 0;
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

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

.prose.wide {
  max-width: 48rem;
}

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

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

.prose li {
  margin-bottom: 0.45em;
}

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

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

.prose th {
  background: rgba(91, 143, 138, 0.1);
  color: var(--navy);
}

/* Quotes / reviews */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

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

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--navy);
}

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

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.story__body {
  padding: 2rem;
}

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

.post-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.post-row__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

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

.post-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

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

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

.post-body {
  padding-top: 2.5rem;
}

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

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

.rate-item__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

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

.form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--salt);
  color: var(--ink);
}

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

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

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

.form-message {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.form-message.is-success {
  background: rgba(91, 143, 138, 0.15);
  color: var(--sea-glass-deep);
}

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

.contact-details {
  background: rgba(91, 143, 138, 0.08);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  padding: 1.75rem;
}

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.92), rgba(27, 58, 75, 0.98));
  color: rgba(247, 245, 241, 0.88);
}

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

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.wordmark--footer {
  color: var(--salt);
  text-align: left;
  justify-self: start;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: rgba(247, 245, 241, 0.7);
  font-size: 0.95rem;
}

.footer-address {
  font-style: normal;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer__col h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dune);
  margin-bottom: 1rem;
}

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

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

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

.newsletter-form input {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 245, 241, 0.25);
  background: rgba(247, 245, 241, 0.08);
  color: var(--salt);
}

.newsletter-form input::placeholder {
  color: rgba(247, 245, 241, 0.5);
}

.site-footer__legal {
  border-top: 1px solid rgba(247, 245, 241, 0.15);
}

.site-footer__legal-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

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

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

.cookie-banner__inner {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.cookie-banner__inner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

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

/* Reveal 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; }

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

.error-page .code {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--sea-glass);
  line-height: 1;
  margin: 0;
}

/* Briefings custom page */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--rule);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--coral);
}

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

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

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

/* Responsive */
@media (max-width: 960px) {
  .hero__content,
  .section-head,
  .feature-split,
  .feature-split--reverse,
  .page-hero--split,
  .card-grid,
  .quote-grid,
  .contact-layout,
  .story,
  .post-row,
  .site-footer__inner,
  .rate-item {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .post-row__body {
    padding: 0 1.25rem 1.35rem;
  }

  .rate-item__price {
    text-align: left;
  }

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

  .nav-toggle {
    display: flex;
  }

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

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

  .has-hero .site-header:not(.is-scrolled) .site-nav a {
    color: var(--navy);
  }

  .header-link {
    display: none;
  }

  .hero__aside {
    border-left: 0;
    border-top: 1px solid rgba(247, 245, 241, 0.35);
    padding-left: 0;
    padding-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .site-footer__legal-inner {
    flex-direction: column;
  }

  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
  }
}
