:root {
  --chalk: #f7f5f1;
  --ivory: #f3eee4;
  --sea-glass: #6fa8a0;
  --sea-glass-deep: #4f8a82;
  --dune: #e8dcc8;
  --navy: #1e2f45;
  --navy-deep: #152233;
  --coral: #d45c4a;
  --ink: #243142;
  --muted: #5c6b7a;
  --rule: rgba(30, 47, 69, 0.16);
  --shadow: 0 14px 36px rgba(21, 34, 51, 0.08);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 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.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(111, 168, 160, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 220, 200, 0.55), transparent 55%),
    linear-gradient(180deg, var(--chalk) 0%, #f1ebe3 48%, var(--chalk) 100%);
  min-height: 100vh;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.65em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
address { font-style: normal; }

.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-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea-glass-deep);
  margin: 0 0 0.85rem;
}

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

.link-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.45s var(--ease);
  text-decoration: none;
}

.link-grow:hover,
.link-grow:focus-visible {
  background-size: 100% 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

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

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(30, 47, 69, 0.45);
  letter-spacing: 0.06em;
}

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

.btn--compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 241, 0.72);
  border-bottom: 1px solid rgba(30, 47, 69, 0.08);
}

.site-header.is-over-hero {
  background: rgba(247, 245, 241, 0.55);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.site-nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--navy);
}

.section {
  padding: 4.5rem 1.4rem;
}

.section--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section--ivory {
  background: rgba(243, 238, 228, 0.72);
}

.section--dune {
  background: linear-gradient(120deg, rgba(232, 220, 200, 0.55), rgba(247, 245, 241, 0.2));
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
  align-items: end;
}

.home-hero__copy {
  padding-bottom: 1.5rem;
}

.home-hero__title {
  max-width: 12ch;
}

.home-hero__aside {
  font-size: 1.05rem;
  color: var(--muted);
  border-left: 2px solid var(--coral);
  padding-left: 1.1rem;
  margin: 1.4rem 0 0;
  max-width: 28rem;
}

.home-hero__media {
  position: relative;
  min-height: 520px;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(0);
  will-change: transform;
}

.home-hero__caption {
  position: absolute;
  left: -1.2rem;
  bottom: 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: 15rem;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.offset-media {
  margin: 0;
}

.offset-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.ribbon {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

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

.card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(21, 34, 51, 0.12);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.card__body {
  padding: 1.25rem 1.3rem 1.5rem;
  border-top: 1px solid var(--rule);
}

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

.card__body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.quote-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--navy);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.facts-strip article {
  border-top: 1px solid var(--navy);
  padding-top: 1rem;
}

.facts-strip h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.page-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.4rem 2rem;
}

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

.page-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 320px;
}

.prose {
  max-width: 68ch;
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
}

.legal .prose,
.article__body {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

.legal .page-hero,
.article__header {
  max-width: 72ch;
  margin: 0 auto;
  padding: 3rem 1.4rem 1.5rem;
}

.article__cover {
  max-width: 980px;
  margin: 0 auto 2rem;
  padding: 0 1.4rem;
}

.article__cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 460px;
  object-fit: cover;
}

.article__meta,
.article__back {
  color: var(--muted);
  padding: 0 1.4rem;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.article__back {
  padding-bottom: 4rem;
}

.service-detail__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.4rem 2rem;
  align-items: center;
}

.service-detail__media img {
  min-height: 420px;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}

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

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

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.process-list__num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

.facts-grid > div {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.cta-band {
  background: var(--navy-deep);
  color: #e8eef4;
}

.cta-band h2 {
  color: #fff;
}

.cta-band__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-band p {
  color: rgba(247, 245, 241, 0.82);
}

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

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

.pricing-table th {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  background: rgba(30, 47, 69, 0.04);
}

.review-list {
  display: grid;
  gap: 1.4rem;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

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

.case-story {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.case-story img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.4rem 4.5rem;
}

.form-card,
.info-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(30, 47, 69, 0.25);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

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

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

.field-error {
  color: var(--coral);
  font-size: 0.86rem;
  margin: 0.35rem 0 0;
}

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

.form-status.is-success {
  background: rgba(111, 168, 160, 0.2);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(212, 92, 74, 0.15);
  color: #8a2f24;
}

.timeline {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.timeline__phase {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--sea-glass-deep);
}

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

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

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

.team-card__body {
  padding: 1.1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--rule);
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 245, 241, 0.86);
  margin-top: 2rem;
}

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

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.4rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.2fr;
  gap: 1.5rem;
}

.site-footer__mark {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #fff;
  margin: 0 0 0.7rem;
}

.site-footer h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--dune);
  margin-bottom: 0.8rem;
}

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

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

.site-footer__address {
  margin-top: 1.1rem;
  line-height: 1.7;
}

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

.newsletter-form input {
  border: 1px solid rgba(247, 245, 241, 0.25);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

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

.site-footer__base {
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  padding: 1rem 1.4rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.65);
}

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

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-banner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

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

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

.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:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.4rem;
}

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

.cookies-table th {
  background: var(--ivory);
}

@media (max-width: 980px) {
  .home-hero,
  .page-hero--split,
  .service-detail__hero,
  .ribbon,
  .split-panel,
  .contact-layout,
  .case-story,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .team-grid,
  .facts-strip,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__media {
    min-height: 360px;
  }

  .home-hero__caption {
    left: 0.8rem;
    right: 0.8rem;
    max-width: none;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 245, 241, 0.97);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.4rem 1.3rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
  }
}
