:root {
  --color-salt: #f7f9f8;
  --color-salt-deep: #eef3f1;
  --color-atlantic: #0b3a5b;
  --color-atlantic-deep: #072a43;
  --color-teal: #2a9b8f;
  --color-coral: #e8897a;
  --color-coral-deep: #d46b5c;
  --color-brass: #c4a574;
  --color-brass-soft: rgba(196, 165, 116, 0.45);
  --color-ink: #1a2b33;
  --color-muted: #5a6d76;
  --color-white: #ffffff;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --radius-card: 18px;
  --shadow-soft: 0 12px 40px rgba(11, 58, 91, 0.08);
  --shadow-lift: 0 18px 48px rgba(11, 58, 91, 0.14);
  --header-h: 4.5rem;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --max-wide: 1280px;
}

*,
*::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(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(42, 155, 143, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 137, 122, 0.1), transparent 45%),
    linear-gradient(180deg, var(--color-salt) 0%, var(--color-salt-deep) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0 0 0.85rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 0.6rem; }

p { margin: 0 0 1rem; }

.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-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 0.75rem;
}

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

.meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.fineprint {
  font-size: 0.9rem;
  color: var(--color-muted);
}

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

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

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

.btn--primary:hover {
  background: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-atlantic);
  border-color: var(--color-brass);
}

.btn--secondary:hover {
  background: rgba(232, 137, 122, 0.12);
  color: var(--color-coral-deep);
  border-color: var(--color-coral);
}

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

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

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

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

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

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

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.site-header__nav.is-open .site-header__list {
  display: flex;
}

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

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

@media (min-width: 980px) {
  .site-header__toggle { display: none; }
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .site-header__brand {
    grid-column: 1;
    justify-self: center;
    order: 1;
  }
  .site-header__nav {
    grid-column: 1;
    order: 2;
    width: 100%;
  }
  .site-header__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.15rem;
    width: 100%;
    padding: 0;
  }
}

.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--space);
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero--asymmetric {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero--asymmetric {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__figure {
    margin-top: 3rem;
    margin-left: -1rem;
  }
}

.hero__title {
  max-width: 14ch;
}

.hero__lede {
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.hero__figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-brass-soft);
  box-shadow: var(--shadow-soft);
  will-change: transform;
}

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

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--space) 1rem;
}

.page-hero--compact { padding-bottom: 0; }

.page-hero--media {
  max-width: var(--max-wide);
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero--media {
    grid-template-columns: 1fr 1fr;
  }
}

.page-hero__figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-brass-soft);
  box-shadow: var(--shadow-soft);
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--space);
}

.section--flagship,
.section--cta {
  max-width: var(--max-wide);
}

.section__header,
.section__intro {
  margin-bottom: 2rem;
}

.section__intro--narrow {
  max-width: 40rem;
}

.section__footer-link {
  margin-top: 1.5rem;
}

.section--split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .section--split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.section--cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 58, 91, 0.06), rgba(42, 155, 143, 0.08));
  border-radius: var(--radius-card);
  border: 1px solid var(--color-brass-soft);
  margin: 2rem auto 4rem;
}

.section--cta p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-muted);
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-brass-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card--lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card__body {
  padding: 1.5rem 1.6rem 1.75rem;
}

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

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid--services {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flagship-panel {
  display: grid;
  gap: 0;
}

@media (min-width: 860px) {
  .flagship-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.flagship-panel__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: auto;
}

.flagship-panel__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

.checklist--muted li::before {
  background: var(--color-brass);
}

.layered-image {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-brass-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.layered-image::after {
  content: "";
  position: absolute;
  inset: 12% -8% auto auto;
  width: 40%;
  height: 40%;
  border: 1px solid var(--color-brass);
  border-radius: var(--radius-card);
  pointer-events: none;
  opacity: 0.55;
}

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

.quote-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .quote-grid,
  .quote-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-card {
  padding: 1.75rem;
}

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

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-grid .card img {
  aspect-ratio: 4 / 5;
}

.fee-table {
  padding: 1.75rem;
  overflow-x: auto;
}

.fee-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

.fee-table th {
  font-family: var(--font-serif);
  color: var(--color-atlantic);
  font-weight: 600;
}

.case-study {
  display: grid;
}

@media (min-width: 860px) {
  .case-study {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .case-study--reverse .case-study__media {
    order: 2;
  }
}

.case-study__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  aspect-ratio: auto;
}

.case-study__body {
  padding: 2rem;
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.process-list li {
  margin-bottom: 0.6rem;
}

.process-stages {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .process-stages {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-stage {
  padding: 1.75rem;
}

.process-stage__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-brass);
  margin: 0 0 0.5rem;
}

.contact-layout {
  align-items: start;
}

.contact-form .card__body,
.contact-details .card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

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

.form-field__error {
  color: var(--color-coral-deep);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 500;
}

.form-status.is-success {
  background: rgba(42, 155, 143, 0.15);
  color: var(--color-atlantic-deep);
}

.form-status.is-error {
  background: rgba(232, 137, 122, 0.2);
  color: #8a3a30;
}

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

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

.post__body {
  max-width: 42rem;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-brass-soft);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-footer {
  margin-top: 2rem;
  background: var(--color-atlantic-deep);
  color: rgba(247, 249, 248, 0.88);
  padding: 3.5rem 0 2rem;
}

.site-footer a {
  color: rgba(247, 249, 248, 0.92);
}

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

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 0.8fr 1.1fr;
  }
}

.site-footer__label {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin: 0 0 0.75rem;
}

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

.site-footer__text {
  margin: 0 0 0.5rem;
  color: rgba(247, 249, 248, 0.78);
  font-size: 0.98rem;
}

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

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(247, 249, 248, 0.65);
}

.site-footer__legal a {
  text-decoration: none;
  color: rgba(247, 249, 248, 0.75);
}

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

.cookie-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-brass-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

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

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

.cookie-banner__error {
  grid-column: 1 / -1;
  color: var(--color-coral-deep);
  margin: 0;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

[data-reveal].is-visible .hero__title,
[data-reveal].is-visible .hero__lede,
[data-reveal].is-visible .eyebrow,
[data-reveal].is-visible .hero__actions {
  animation: fadeUp 0.9s ease both;
}

[data-reveal].is-visible .eyebrow { animation-delay: 0.05s; }
[data-reveal].is-visible .hero__title { animation-delay: 0.15s; }
[data-reveal].is-visible .hero__lede { animation-delay: 0.28s; }
[data-reveal].is-visible .hero__actions { animation-delay: 0.4s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  .card--lift,
  .btn {
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
