:root {
  --salt-white: #f7f5f1;
  --salt-soft: #efeae2;
  --atlantic: #0b3a5b;
  --atlantic-deep: #072a43;
  --sea-glass: #5b9a8b;
  --sea-glass-soft: #d7ebe4;
  --coral: #c97b63;
  --coral-bright: #d9896f;
  --brass: #b8956a;
  --brass-soft: rgba(184, 149, 106, 0.35);
  --ink: #1a2a33;
  --ink-muted: #5a6b75;
  --paper: #fffcf7;
  --shadow: 0 18px 40px rgba(11, 58, 91, 0.08);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
  --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.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 154, 139, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(201, 123, 99, 0.1), transparent 28%),
    linear-gradient(180deg, var(--salt-white) 0%, #f3f0ea 48%, var(--salt-soft) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.6rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-glass);
  margin: 0 0 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s ease, color 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

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

.btn--primary:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--atlantic);
  border: 1px solid var(--brass);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(201, 123, 99, 0.1);
  color: var(--coral);
  transform: translateY(-2px);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 245, 241, 0.72);
  border-bottom: 1px solid var(--brass-soft);
}

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

.site-header__brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--atlantic-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header__toggle {
  grid-column: 1;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--atlantic);
}

.site-header__nav {
  grid-column: 1 / -1;
}

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
}

.site-header__list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

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

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

.site-header__cta:hover {
  background: var(--coral) !important;
}

@media (max-width: 900px) {
  .site-header__toggle { display: flex; }
  .site-header__nav {
    display: none;
    padding-bottom: 1rem;
  }
  .site-header__nav.is-open { display: block; }
  .site-header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Hero & sections */
.hero,
.page-hero,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.hero--asymmetric {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
  padding-top: 5rem;
}

.hero__title {
  max-width: 12ch;
}

.hero__lede {
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.hero__media {
  position: relative;
}

.hero__media img,
.page-hero__image,
.media-panel img,
.card__image,
.team-card img {
  border-radius: var(--radius);
  border: 1px solid var(--brass-soft);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: auto -1.2rem -1.2rem auto;
  width: 48%;
  height: 42%;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  pointer-events: none;
}

.page-hero--detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .lede {
  margin-left: auto;
  margin-right: auto;
}

.section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__grid--split,
.section__grid--evidence,
.detail-grid,
.detail-columns,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.section--band {
  background: rgba(255, 252, 247, 0.7);
  border-block: 1px solid var(--brass-soft);
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--max)) / 2));
}

.section--band > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.media-panel figcaption,
.card__meta,
.detail-meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.media-panel figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.layered-stack {
  position: relative;
  min-height: 28rem;
}

.layered-stack img:first-child {
  width: 85%;
}

.layered-stack img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  border: 2px solid var(--brass);
}

.pull-quote {
  margin: 0 0 1.5rem;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 2px solid var(--brass);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--atlantic-deep);
}

.pull-quote footer {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.rhythm-list {
  display: grid;
  gap: 0;
}

.rhythm-list__item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--brass-soft);
}

.rhythm-list__item:last-child {
  border-bottom: 1px solid var(--brass-soft);
}

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

.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.paper-panel,
.review-card,
.team-card {
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover,
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11, 58, 91, 0.12);
}

.card__body,
.paper-panel,
.review-card {
  padding: 1.5rem;
}

.card__image {
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3 / 2;
  box-shadow: none;
}

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

.card--horizontal {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}

.card--horizontal .card__image {
  border-radius: 0;
  height: 100%;
  min-height: 220px;
}

.paper-panel h3 {
  font-family: var(--font-serif);
}

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

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sea-glass);
}

.check-list--muted li::before {
  background: var(--brass);
}

.process-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.process-steps li {
  margin-bottom: 0.85rem;
}

.fee-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--brass-soft);
  vertical-align: top;
}

.fee-table th {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  background: var(--sea-glass-soft);
  color: var(--atlantic-deep);
}

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

.review-card {
  margin: 0;
}

.review-card p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.4;
}

.review-card__note {
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  color: var(--ink-muted);
  font-style: italic;
}

.review-card footer {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.team-card {
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.team-card img {
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 5 / 6;
  box-shadow: none;
  margin-bottom: 1rem;
}

.team-card h3,
.team-card p {
  padding: 0 1.25rem;
}

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

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

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.form-field__error,
.form-status--error,
.cookie-banner__error {
  color: #9b3b2e;
  font-size: 0.9rem;
  margin: 0;
}

.form-status {
  color: var(--sea-glass);
  font-weight: 600;
}

.contact-details__note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 48rem;
}

.legal-content h2 {
  margin-top: 2rem;
}

.post__body {
  max-width: 44rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--atlantic-deep);
  color: rgba(247, 245, 241, 0.88);
  padding: 4rem 1.5rem 2rem;
}

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

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

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

.site-footer__label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--brass);
  margin: 0 0 0.85rem;
}

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

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

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

.site-footer__note {
  color: rgba(247, 245, 241, 0.75);
  margin-bottom: 1.25rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 149, 106, 0.35);
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.65);
}

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

.cookie-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(7, 42, 67, 0.2);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 1rem;
}

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

.cookie-banner[hidden] {
  display: none !important;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

[data-reveal].is-visible .hero__copy > *,
[data-reveal].is-visible .page-hero__copy > * {
  animation: fadeUp 0.8s var(--ease) both;
}

[data-reveal].is-visible .hero__copy > *:nth-child(2),
[data-reveal].is-visible .page-hero__copy > *:nth-child(2) { animation-delay: 0.1s; }
[data-reveal].is-visible .hero__copy > *:nth-child(3),
[data-reveal].is-visible .page-hero__copy > *:nth-child(3) { animation-delay: 0.2s; }
[data-reveal].is-visible .hero__copy > *:nth-child(4),
[data-reveal].is-visible .page-hero__copy > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero--asymmetric,
  .page-hero--detail,
  .section__grid--split,
  .section__grid--evidence,
  .detail-grid,
  .detail-columns,
  .contact-layout,
  .card-grid,
  .card-grid--two,
  .review-grid,
  .team-grid,
  .card--horizontal,
  .rhythm-list__item,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .layered-stack {
    min-height: auto;
  }

  .layered-stack img:last-child {
    position: static;
    width: 78%;
    margin-top: -2.5rem;
    margin-left: auto;
  }

  .hero__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
