:root {
  --pearl: #f4f7fb;
  --moon: #d5dee9;
  --silver: #a8b6c9;
  --navy: #132038;
  --navy-deep: #0b1528;
  --cyan: #7ec8d8;
  --cyan-soft: #b7e0ea;
  --lavender: #c9bdd8;
  --ink: #1a2740;
  --muted: #5a6a82;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-solid: #eef3f8;
  --ring: rgba(126, 200, 216, 0.45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wrap: min(1120px, calc(100% - 2.5rem));
  --radius: 1.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-body);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 200, 216, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 189, 216, 0.22), transparent 50%),
    linear-gradient(180deg, var(--pearl) 0%, #e7eef6 42%, #dfe8f2 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;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: #2a6f82;
}

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

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 0.55em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--pearl);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d6f7f;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

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

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 500;
  color: var(--pearl);
  margin: 0 0 0.35em;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 40px rgba(11, 21, 40, 0.35);
  animation: rise 1s var(--ease) both;
}

.btn {
  --btn-bg: linear-gradient(135deg, #1c3358, #244866 40%, #3a7d8f);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--pearl);
  font: 500 0.95rem var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 10px 30px rgba(19, 32, 56, 0.22);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--pearl);
  box-shadow: 0 14px 34px rgba(19, 32, 56, 0.28);
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: moon-ring 0.9s var(--ease) forwards;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  border: 1px solid rgba(168, 182, 201, 0.8);
}

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

@keyframes moon-ring {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

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

@keyframes tide {
  0%, 100% { background-position: 0% 40%, 100% 60%, 50% 100%; }
  50% { background-position: 20% 60%, 80% 40%, 50% 90%; }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid rgba(168, 182, 201, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
}

.logo--footer {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--silver);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: 500 0.85rem var(--font-body);
  color: var(--navy);
}

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

.site-nav a {
  text-decoration: none;
  font-weight: 400;
  color: var(--muted);
}

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

.hero-tide {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 21, 40, 0.15) 0%, rgba(11, 21, 40, 0.72) 70%, rgba(11, 21, 40, 0.88) 100%),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  color: var(--pearl);
  animation: tide 18s ease-in-out infinite;
}

.hero-tide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(183, 224, 234, 0.35), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(201, 189, 216, 0.25), transparent 40%);
  pointer-events: none;
  animation: float-soft 9s ease-in-out infinite;
}

.hero-tide__inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto 4.5rem;
  animation: rise 1.1s 0.15s var(--ease) both;
}

.hero-tide h1 {
  color: var(--pearl);
  max-width: 14ch;
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.hero-tide .lede {
  color: rgba(244, 247, 251, 0.88);
  max-width: 32rem;
}

.hero-tide .btn {
  margin-top: 0.4rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--moon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(183, 224, 234, 0.18)),
    var(--surface-solid);
  border-block: 1px solid rgba(168, 182, 201, 0.35);
}

.stone {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(213, 222, 233, 0.45));
  border: 1px solid rgba(168, 182, 201, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(19, 32, 56, 0.06);
  backdrop-filter: blur(8px);
}

.primary-offer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.primary-offer img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
}

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

.offer-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(168, 182, 201, 0.35);
}

.offer-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 1rem 1rem 0;
}

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

.place-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

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

.media-tile {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(168, 182, 201, 0.35);
}

.media-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-tile > *:not(img) {
  padding-inline: 1.15rem;
}

.media-tile h3,
.media-tile .meta {
  padding-top: 0.9rem;
}

.media-tile p:last-child {
  padding-bottom: 1.15rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-hero--image {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--pearl);
  background:
    linear-gradient(180deg, rgba(11, 21, 40, 0.2), rgba(11, 21, 40, 0.78)),
    var(--page-hero-image) center/cover no-repeat;
}

.page-hero--image h1,
.page-hero--image .lede,
.page-hero--image .kicker {
  color: var(--pearl);
}

.page-hero--image .kicker {
  opacity: 0.85;
}

.page-hero--image .wrap {
  margin-bottom: 2.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__body p:last-of-type {
  margin-top: auto;
}

.prose {
  max-width: 42rem;
}

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

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

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

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 182, 201, 0.85);
  background: rgba(255, 255, 255, 0.75);
  font: 300 1rem var(--font-body);
  color: var(--ink);
}

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

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

.field-error {
  margin: 0;
  color: #8a3a4a;
  font-size: 0.86rem;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(138, 58, 74, 0.1);
  color: #6e2f3c;
}

.form-status.is-ok {
  background: rgba(61, 122, 110, 0.12);
  color: #24574d;
}

.curriculum-list {
  display: grid;
  gap: 1rem;
  counter-reset: stage;
}

.curriculum-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
}

.curriculum-item__id {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #3d6f7f;
  line-height: 1;
}

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

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(19, 32, 56, 0.06));
  border-top: 1px solid rgba(168, 182, 201, 0.35);
}

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

.footer-heading {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

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

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 182, 201, 0.3);
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 1rem 0;
  border-radius: var(--radius);
  background: rgba(244, 247, 251, 0.92);
  border: 1px solid rgba(168, 182, 201, 0.55);
  box-shadow: 0 18px 50px rgba(11, 21, 40, 0.18);
  backdrop-filter: blur(12px);
}

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

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie .form-status {
  margin: 0.5rem 1.25rem 0;
}

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

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 247, 251, 0.96);
    border-bottom: 1px solid rgba(168, 182, 201, 0.4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem var(--space) 1.25rem;
    gap: 0.85rem;
  }
  .primary-offer,
  .place-band,
  .split,
  .post-grid,
  .site-footer__grid,
  .offer-item,
  .curriculum-item {
    grid-template-columns: 1fr;
  }
  .offer-item img {
    width: 100%;
    height: 160px;
  }
  .cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
