:root {
  --pearl: #f4f7fb;
  --pearl-2: #e8eef5;
  --silver: #c5cedd;
  --navy: #1a2744;
  --navy-deep: #0f1a33;
  --cyan: #7ec8d4;
  --cyan-soft: #9ad7e0;
  --lavender: #c9b8d9;
  --ink: #152036;
  --muted: #5a6a84;
  --line: rgba(26, 39, 68, 0.14);
  --glass: rgba(244, 247, 251, 0.72);
  --shadow: 0 20px 48px rgba(15, 26, 51, 0.12);
  --display: "Quicksand", "Segoe UI", sans-serif;
  --text: "Nunito", "Segoe UI", sans-serif;
  --radius: 1.1rem;
}

*,
*::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.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    radial-gradient(1000px 520px at 90% -10%, rgba(126, 200, 212, 0.28), transparent 55%),
    radial-gradient(800px 480px at -5% 20%, rgba(201, 184, 217, 0.22), transparent 50%),
    linear-gradient(165deg, var(--pearl) 0%, var(--pearl-2) 45%, #d9e4f0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(126, 200, 212, 0.18), transparent 60%),
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  animation: tide-shift 22s ease-in-out infinite alternate;
}

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

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

a {
  color: var(--navy);
  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.01em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.15em 0 0.45em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

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

.skip:focus {
  top: 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.92), rgba(244, 247, 251, 0.7));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.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.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--navy);
  border-radius: 2px;
}

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

.site-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}

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

/* Full-bleed moonrise hero — unique composition */
.tide-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.tide-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.tide-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.88);
  animation: moon-drift 20s ease-in-out infinite alternate;
}

.tide-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 51, 0.25) 0%, rgba(15, 26, 51, 0.15) 35%, rgba(15, 26, 51, 0.78) 100%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(126, 200, 212, 0.25), transparent 55%);
}

.tide-hero__content {
  width: 100%;
  padding: 4rem 0 3.25rem;
  color: var(--pearl);
  animation: rise-in 1s ease-out both;
}

.tide-hero .brand-hero {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 12px 40px rgba(15, 26, 51, 0.35);
}

.tide-hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  max-width: 28ch;
  color: rgba(244, 247, 251, 0.92);
  margin: 0 0 0.75rem;
}

.tide-hero .lede {
  max-width: 40ch;
  color: rgba(232, 238, 245, 0.85);
  margin: 0 0 1.5rem;
}

.tide-hero .btn {
  box-shadow: 0 0 0 0 rgba(154, 215, 224, 0.55);
}

.section {
  padding: 3.5rem 0;
}

.section--panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(154, 215, 224, 0.12));
  border-block: 1px solid var(--line);
}

.kicker {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  color: #f4f7fb;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 45%, #2a4a6a 70%, var(--cyan));
  background-size: 180% 100%;
  box-shadow: 0 12px 28px rgba(15, 26, 51, 0.22);
  transition: transform 0.25s ease, box-shadow 0.35s ease, background-position 0.4s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(154, 215, 224, 0.55) 0%, rgba(154, 215, 224, 0) 70%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:hover {
  color: #fff;
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 26, 51, 0.28);
}

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

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
  box-shadow: none;
}

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

.offer-list {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.offer-row img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.88);
}

.offer-row h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.3rem;
}

.offer-row h3 a {
  text-decoration: none;
  color: inherit;
}

.quote-stack {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(232, 238, 245, 0.85)),
    linear-gradient(180deg, transparent, rgba(126, 200, 212, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0 0 0.6rem;
  font-style: italic;
}

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

.post-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.media-tile {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.media-tile > *:not(img) {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

.media-tile h3 {
  margin: 0.35rem 1.1rem 0.45rem;
  font-size: 1.15rem;
}

.media-tile h3 a {
  text-decoration: none;
  color: inherit;
}

.media-tile p {
  margin: 0 1.1rem 1.2rem;
  color: var(--muted);
}

.media-tile .meta {
  margin-top: 0.9rem;
}

.page-hero {
  padding: 3rem 0 1rem;
}

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

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

.split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  min-height: 280px;
  filter: saturate(0.88);
}

.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 0.9rem;
}

.outcome-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.outcome-list li + li {
  margin-top: 0.35rem;
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.98rem;
}

.cohort-table th,
.cohort-table td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cohort-table th {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.cohort-table a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.steps {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

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

.step-num {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.03em;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-family: var(--text);
  font-weight: 400;
}

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

.field-error {
  color: #8a3a4a;
  font-size: 0.85rem;
  min-height: 1.1em;
  font-family: var(--text);
}

.form-status {
  margin: 0.5rem 0 0;
  color: #8a3a4a;
}

.form-status.is-ok {
  color: #2f6b5a;
}

.legal {
  padding-bottom: 3rem;
}

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

.legal ul {
  padding-left: 1.15rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(126, 200, 212, 0.12)),
    linear-gradient(145deg, #d5e0ec, #b8c8d9);
  border-top: 1px solid var(--line);
}

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

.footer-label {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

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

.site-footer li + li {
  margin-top: 0.35rem;
}

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

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

.cookie__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: linear-gradient(145deg, rgba(244, 247, 251, 0.96), rgba(201, 184, 217, 0.25));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

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

.place-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
}

.place-panel img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

@keyframes moon-drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.2%, 1%, 0);
  }
}

@keyframes tide-shift {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.55;
  }
}

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

@keyframes moonlight-ring {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .offer-row,
  .split,
  .post-grid,
  .service-grid,
  .site-footer__grid,
  .place-panel {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

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

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

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

  .tide-hero {
    min-height: min(86vh, 720px);
  }

  .offer-row img {
    height: 180px;
  }

  .cohort-table {
    display: block;
    overflow-x: auto;
  }
}

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