:root {
  --salt: #f7f5f1;
  --dune: #e6ddd0;
  --teal: #5b8f8a;
  --teal-deep: #3d6b67;
  --navy: #1b3a4b;
  --coral: #e07a5f;
  --ink: #1a2428;
  --muted: #5c6a70;
  --paper: #fffcf7;
  --shadow: 0 12px 32px rgba(27, 58, 75, 0.08);
  --radius: 18px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 72rem;
}

*,
*::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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(91, 143, 138, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(224, 122, 95, 0.08), transparent 45%),
    linear-gradient(180deg, var(--salt) 0%, var(--dune) 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.2em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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

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

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

.site-header.is-scrolled,
body:not(.has-hero) .site-header {
  background: rgba(247, 245, 241, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 58, 75, 0.08);
}

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

.wordmark {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.has-hero .site-header:not(.is-scrolled) .wordmark {
  color: var(--salt);
  text-shadow: 0 1px 12px rgba(27, 58, 75, 0.45);
}

.nav-toggle {
  grid-column: 1;
  justify-self: start;
  display: none;
  background: transparent;
  border: 1px solid rgba(27, 58, 75, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  color: var(--navy);
  cursor: pointer;
}

.has-hero .site-header:not(.is-scrolled) .nav-toggle {
  color: var(--salt);
  border-color: rgba(247, 245, 241, 0.45);
}

.nav-toggle__bars {
  display: inline-block;
  width: 1rem;
  height: 2px;
  margin-left: 0.4rem;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor;
  vertical-align: middle;
}

.site-nav {
  grid-column: 3;
  justify-self: end;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

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

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

.site-nav__cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--salt) !important;
}

.has-hero .site-header:not(.is-scrolled) .site-nav__cta {
  background: var(--coral);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  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--navy {
  background: var(--navy);
  color: var(--salt);
  border-color: var(--navy);
}

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

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

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

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

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

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

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

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

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

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

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

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--salt);
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: rgba(247, 245, 241, 0.92);
}

.hero__aside {
  border-left: 1px solid rgba(247, 245, 241, 0.35);
  padding-left: 1.5rem;
  font-size: 0.98rem;
}

.hero__aside p {
  margin: 0 0 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.section--tint {
  background: rgba(255, 252, 247, 0.55);
}

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

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section__intro {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split--asym {
  grid-template-columns: 1.15fr 0.85fr;
}

.split--reverse .split__media {
  order: 2;
}

.panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 58, 75, 0.08);
  overflow: hidden;
}

.panel--pad {
  padding: 1.5rem 1.6rem;
}

.panel__rule {
  border: 0;
  border-top: 1px solid rgba(27, 58, 75, 0.12);
  margin: 1rem 0;
}

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

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 58, 75, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.card__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.card__text {
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.card__meta {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}

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

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2rem;
}

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

.stack-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(27, 58, 75, 0.1);
}

.stack-list li:first-child {
  border-top: 1px solid rgba(27, 58, 75, 0.1);
}

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

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

.story {
  background: rgba(91, 143, 138, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(91, 143, 138, 0.2);
}

.table-wrap {
  overflow-x: auto;
}

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

table.cookies-table th,
table.cookies-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(27, 58, 75, 0.1);
  font-size: 0.95rem;
}

table.cookies-table th {
  background: var(--navy);
  color: var(--salt);
  font-weight: 600;
}

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

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

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

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form .field-error {
  color: #a33a2a;
  font-size: 0.88rem;
  font-weight: 500;
}

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

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

.form-status.is-error {
  background: rgba(224, 122, 95, 0.18);
  color: #8a3d2c;
}

.contact-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s 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; }

/* Footer */
.site-footer {
  margin-top: 2rem;
}

.site-footer__wash {
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.92), rgba(27, 58, 75, 0.98)),
    var(--navy);
  color: rgba(247, 245, 241, 0.88);
  padding: 3.5rem 0 2rem;
}

.site-footer__grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer__tag {
  margin: 0 0 1rem;
  color: rgba(247, 245, 241, 0.75);
}

.site-footer__address {
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: rgba(247, 245, 241, 0.9);
}

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

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

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

.site-footer__links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer__links a:hover {
  border-bottom-color: rgba(247, 245, 241, 0.4);
  color: var(--salt);
}

.site-footer__newsletter {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(247, 245, 241, 0.18);
  border-bottom: 1px solid rgba(247, 245, 241, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
}

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

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

.site-footer__bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.55);
}

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

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

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

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

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

.cookie-banner__error {
  color: #a33a2a;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}

.detail-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(91, 143, 138, 0.15);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.briefing-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}

.price-block {
  display: grid;
  gap: 1.25rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 58, 75, 0.08);
}

.price-row strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

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

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}

@media (max-width: 960px) {
  .hero__content,
  .split,
  .split--asym,
  .card-grid,
  .contact-block,
  .site-footer__grid,
  .site-footer__newsletter,
  .detail-hero,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0.75rem;
    right: 0.75rem;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    color: var(--navy) !important;
    padding: 0.45rem 0;
  }

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

  .wordmark {
    grid-column: 2;
    justify-self: center;
  }
}
