:root {
  --salt: #f7f4ef;
  --dune: #e8dfd0;
  --teal: #4a8b8c;
  --teal-deep: #3a7072;
  --navy: #1b3a4b;
  --navy-soft: #2a5164;
  --coral: #e07a5f;
  --coral-deep: #c96147;
  --ink: #1a242c;
  --muted: #5c6b74;
  --paper: #fffdf9;
  --rule: rgba(27, 58, 75, 0.14);
  --shadow: 0 12px 32px rgba(27, 58, 75, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
}

*,
*::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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(74, 139, 140, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 122, 95, 0.08), transparent 50%),
    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.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);
  margin: 0 0 0.6em;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  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(--paper);
  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);
}

.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,
.site-header.is-solid {
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.page-no-hero .site-header {
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

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

.site-header__wordmark {
  font-family: var(--font-display);
  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-header__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-header__nav--left { justify-content: flex-start; }
.site-header__nav--right { justify-content: flex-end; }

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

.site-header__nav a:hover {
  color: var(--teal-deep);
}

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

.site-header__cta:hover {
  background: var(--teal);
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

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

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

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

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.25) 0%, rgba(27, 58, 75, 0.55) 45%, rgba(27, 58, 75, 0.82) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--salt);
  margin: 0 0 0.4rem;
  max-width: 12ch;
}

.hero__line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--dune);
  max-width: 28ch;
  margin-bottom: 1rem;
}

.hero__text {
  max-width: 38ch;
  color: rgba(247, 244, 239, 0.92);
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.section--tint {
  background: rgba(232, 223, 208, 0.45);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

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

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  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; }

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

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

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

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

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

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

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

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

.split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

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

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

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

.quote-block::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 0;
  width: 3rem;
  height: 2px;
  background: var(--coral);
}

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

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

.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 1.5rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero--wide {
  max-width: none;
  background: linear-gradient(135deg, rgba(74, 139, 140, 0.12), rgba(232, 223, 208, 0.5));
  border-bottom: 1px solid var(--rule);
}

.page-hero--wide .page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 42ch;
  color: var(--muted);
}

.article {
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.article__header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.article__lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.article__hero {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__hero--asym {
  max-width: 85%;
  margin-left: auto;
}

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

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article__tags span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.article__back {
  margin-top: 3rem;
}

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

.prose--narrow {
  max-width: 42rem;
}

.detail-panel__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 1rem;
}

.detail-panel__card p {
  margin: 0;
  font-size: 0.95rem;
}

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

.list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.list-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.list-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.pricing-table th {
  background: rgba(74, 139, 140, 0.1);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.95rem;
}

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

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

.form-group .error {
  color: var(--coral-deep);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.is-invalid .error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--coral);
}

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

.form-message.is-success {
  background: rgba(74, 139, 140, 0.15);
  color: var(--teal-deep);
}

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

.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}

.legal h1 {
  margin-bottom: 1rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

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

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

.cookies-table th {
  background: rgba(27, 58, 75, 0.06);
}

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

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

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

.team-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.team-card__body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

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

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--teal);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

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

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

.story-card {
  background: rgba(74, 139, 140, 0.08);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

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

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

.site-footer__wash {
  background:
    linear-gradient(180deg, rgba(27, 58, 75, 0.92), rgba(27, 58, 75, 0.98));
  color: rgba(247, 244, 239, 0.88);
  padding: 4rem 1.5rem 2rem;
}

.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.3fr;
  gap: 2rem;
}

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

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dune);
  margin-bottom: 0.85rem;
}

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

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 239, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.65);
}

.newsletter-form__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

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

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
}

.cookie-banner__inner {
  max-width: 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;
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}

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

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

.feature-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.feature-band__aside {
  background: var(--navy);
  color: var(--salt);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-band__aside h3 {
  color: var(--salt);
}

.feature-band__aside p {
  color: rgba(247, 244, 239, 0.85);
}

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

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

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

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

.journal-row__body h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.journal-row__body h2 a {
  color: var(--navy);
  text-decoration: none;
}

.journal-row__body h2 a:hover {
  color: var(--teal-deep);
}

@media (max-width: 960px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--rule);
    gap: 0.85rem;
  }

  .site-header__nav--right.is-open {
    border-top: 0;
  }

  .site-header__cta {
    text-align: center;
  }

  .card-grid,
  .team-grid,
  .site-footer__grid,
  .split,
  .split--reverse,
  .article__grid,
  .contact-layout,
  .feature-band,
  .journal-row,
  .list-item {
    grid-template-columns: 1fr;
  }

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

  .article__hero--asym {
    max-width: 100%;
  }

  .site-header__wordmark {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-bottom: 3rem;
  }

  .section {
    padding: 3.5rem 1.15rem;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
