:root {
  --pearl: #edf4f5;
  --pearl-2: #dfecee;
  --moonstone: #b9cdcf;
  --tide: #4f9e96;
  --tide-deep: #356f6a;
  --glow: #9ed8d0;
  --lavender: #c5c0d8;
  --cliff: #1f3842;
  --ink: #12242c;
  --muted: #4a6169;
  --line: rgba(53, 111, 106, 0.24);
  --glass: rgba(237, 244, 245, 0.78);
  --shadow: 0 18px 44px rgba(18, 36, 44, 0.13);
  --display: "Fraunces", "Palatino Linotype", serif;
  --text: "Sora", "Segoe UI", sans-serif;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(158, 216, 208, 0.45), transparent 58%),
    radial-gradient(720px 420px at 96% 12%, rgba(197, 192, 216, 0.28), transparent 50%),
    linear-gradient(168deg, var(--pearl) 0%, var(--pearl-2) 46%, #c8dade 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(132deg, transparent 38%, rgba(255, 255, 255, 0.4) 50%, transparent 62%),
    radial-gradient(circle at 76% 78%, rgba(79, 158, 150, 0.12), transparent 40%);
  animation: tide-sheen 26s ease-in-out infinite alternate;
}

@keyframes tide-sheen {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-2%, 1.5%, 0); }
}

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

@keyframes moonlight-ring {
  0% { box-shadow: 0 0 0 0 rgba(158, 216, 208, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(158, 216, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(158, 216, 208, 0); }
}

main,
.site-header,
.site-footer,
.cookie {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--tide-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

h1,
h2,
h3,
.brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  margin: 0.1em 0 0.4em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cliff);
  color: var(--pearl);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(237, 244, 245, 0.96), rgba(237, 244, 245, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand--footer {
  margin: 0 0 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--cliff);
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

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

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

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--tide-deep);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  background: linear-gradient(145deg, var(--tide) 0%, var(--tide-deep) 100%);
  color: var(--pearl);
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  color: var(--pearl);
  transform: translateY(-1px);
}

.btn:focus-visible,
.btn:active {
  animation: moonlight-ring 0.85s ease-out;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cliff);
}

.btn--ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--pearl);
  overflow: hidden;
  animation: rise 0.9s ease both;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
}

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

.hero-bleed__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 36, 44, 0.25) 0%, rgba(18, 36, 44, 0.55) 42%, rgba(18, 36, 44, 0.88) 100%),
    radial-gradient(600px 280px at 70% 20%, rgba(158, 216, 208, 0.28), transparent 70%);
}

.hero-bleed__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.4rem;
  max-width: 38rem;
}

.hero-bleed .brand-mark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 0.55rem;
  color: var(--pearl);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-bleed__lede {
  font-size: 1.08rem;
  color: rgba(237, 244, 245, 0.9);
  margin: 0;
  max-width: 32rem;
}

.hero-bleed .btn {
  margin-top: 1.4rem;
}

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.75rem 0;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  animation: rise 0.8s ease both;
}

.moon-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(185, 205, 207, 0.28));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
}

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

.split--reverse > :first-child {
  order: 2;
}

.media-frame {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

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

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.offer-row:hover {
  background: rgba(255, 255, 255, 0.35);
}

.offer-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-row__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.offer-row h3 {
  margin: 0.15rem 0 0.35rem;
}

.offer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.offer-row__price {
  font-weight: 500;
  color: var(--tide-deep);
  white-space: nowrap;
}

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

.voice {
  padding: 1.35rem;
}

.voice blockquote {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--cliff);
}

.voice cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.process-rail {
  display: grid;
  gap: 0;
  counter-reset: none;
}

.process-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: 1px solid var(--line);
}

.process-step__num {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--tide-deep);
  line-height: 1;
}

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

.article-card {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.article-card__date {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
  animation: rise 0.75s ease both;
}

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

.prose {
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.service-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 1rem;
}

.meta-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  font-size: 0.95rem;
}

.meta-list span:first-child {
  color: var(--muted);
}

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

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

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(79, 158, 150, 0.45);
  outline-offset: 1px;
}

.field-error {
  color: #8a2f3a;
  font-size: 0.85rem;
  font-weight: 400;
  min-height: 1.1em;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  background: rgba(158, 216, 208, 0.35);
  color: var(--cliff);
}

.form-status[data-state="error"] {
  background: rgba(180, 80, 90, 0.12);
  color: #8a2f3a;
}

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

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(223, 236, 238, 0.55), rgba(185, 205, 207, 0.35));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cliff);
  margin: 0 0 0.65rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink);
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(31, 56, 66, 0.92), rgba(18, 36, 44, 0.96));
  color: var(--pearl);
  border-top: 1px solid rgba(158, 216, 208, 0.28);
}

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

.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie__text {
  margin: 0;
  flex: 1 1 280px;
  color: rgba(237, 244, 245, 0.92);
}

.cookie a {
  color: var(--glow);
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
}

.cookie .btn--ghost {
  color: var(--pearl);
  border-color: rgba(237, 244, 245, 0.35);
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found p {
  color: var(--muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .split,
  .split--reverse,
  .service-hero,
  .site-footer__grid,
  .grid-3,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .offer-row {
    grid-template-columns: 100px 1fr;
  }

  .offer-row__price {
    grid-column: 2;
  }

  .offer-row img {
    width: 100px;
    height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(237, 244, 245, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

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