:root {
  --pearl: #f2f7f8;
  --pearl-deep: #dce9eb;
  --silver: #b7c9cd;
  --cyan: #6eb8b0;
  --cyan-deep: #3d7f78;
  --navy: #1a3340;
  --lavender: #c5c0d4;
  --ink: #132830;
  --muted: #4d646c;
  --line: rgba(61, 127, 120, 0.22);
  --glass: rgba(242, 247, 248, 0.78);
  --display: "Instrument Serif", "Palatino Linotype", serif;
  --text: "Outfit", "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-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    radial-gradient(900px 500px at 8% -8%, rgba(110, 184, 176, 0.28), transparent 55%),
    radial-gradient(760px 420px at 96% 12%, rgba(197, 192, 212, 0.35), transparent 50%),
    linear-gradient(168deg, var(--pearl) 0%, var(--pearl-deep) 52%, #c5d8dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(122deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%),
    radial-gradient(circle at 70% 80%, rgba(110, 184, 176, 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); }
}

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

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

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

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

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

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

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

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

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

.skip:focus {
  top: 0.6rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(242, 247, 248, 0.96), rgba(242, 247, 248, 0.82));
  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.45rem;
  color: var(--ink);
}

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

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

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

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

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

.hero-tide {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-tide__plane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-tide__plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: plane-drift 28s ease-in-out infinite alternate;
}

@keyframes plane-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

.hero-tide__plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 51, 64, 0.15) 0%, rgba(26, 51, 64, 0.55) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 45%);
}

.hero-tide__band {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(242, 247, 248, 0.08), rgba(242, 247, 248, 0.94) 28%, var(--pearl));
  padding: 3.5rem 0 3rem;
  backdrop-filter: blur(2px);
}

.brand-mark {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 0.35rem;
  color: var(--pearl);
  text-shadow: 0 2px 24px rgba(26, 51, 64, 0.35);
  animation: rise-in 0.9s ease both;
}

.hero-tide__inner h1 {
  color: var(--ink);
  max-width: 18ch;
  animation: rise-in 1s ease 0.08s both;
}

.hero-tide__inner .lede {
  max-width: 42rem;
  color: var(--muted);
  animation: rise-in 1s ease 0.16s both;
}

.cta-row {
  margin-top: 1.4rem;
  animation: rise-in 1s ease 0.24s both;
}

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

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

.kicker,
.meta,
.footer-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
}

.meta {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 500;
}

.section {
  padding: 4.2rem 0;
}

.section--mist {
  background: linear-gradient(180deg, rgba(183, 201, 205, 0.22), rgba(242, 247, 248, 0.4));
  border-block: 1px solid var(--line);
}

.primary-split,
.split,
.place-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.primary-split img,
.split img,
.place-row img,
.catalog-item img,
.module-rail img,
.note-rail img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  filter: saturate(0.92) contrast(1.02);
}

.module-rail,
.note-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.note-rail--full {
  grid-template-columns: repeat(2, 1fr);
}

.module-rail li,
.note-rail article,
.catalog-item {
  padding: 0;
}

.voice-stack {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.voice-stack blockquote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--cyan);
}

.voice-stack footer {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog {
  display: grid;
  gap: 2.2rem;
}

.catalog-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
}

.method-list {
  display: grid;
  gap: 1.2rem;
}

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

.step-num {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0;
  color: var(--cyan-deep);
}

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

.prose p,
.legal p {
  max-width: 42rem;
}

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

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

.btn:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

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

.moon-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(158, 216, 208, 0.2) 40%, transparent 70%);
  animation: moon-ring 0.7s ease-out forwards;
}

@keyframes moon-ring {
  from { transform: scale(0.2); opacity: 0.9; }
  to { transform: scale(1); opacity: 0; }
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

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

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.form-status {
  margin: 0.4rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(138, 58, 58, 0.1);
  color: #6e2f2f;
}

.form-status.is-ok {
  background: rgba(61, 127, 120, 0.14);
  color: var(--cyan-deep);
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(26, 51, 64, 0.92), #132830);
  color: #d7e6e8;
}

.site-footer a {
  color: #bfe4df;
}

.site-footer .brand {
  color: #f2f7f8;
}

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

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

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

.footer-label {
  color: var(--lavender);
  margin: 0;
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(183, 201, 205, 0.2);
  font-size: 0.92rem;
  color: #9eb4ba;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 1rem 0;
  background: rgba(26, 51, 64, 0.94);
  color: #e8f2f3;
  border-top: 1px solid rgba(183, 201, 205, 0.28);
  backdrop-filter: blur(12px);
}

.cookie a {
  color: #bfe4df;
}

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

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

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

@media (max-width: 900px) {
  .primary-split,
  .split,
  .place-row,
  .catalog-item,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .module-rail,
  .note-rail,
  .note-rail--full {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(242, 247, 248, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.3rem 1.2rem;
  }

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

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

  .cookie__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-mark {
    color: var(--ink);
    text-shadow: none;
  }

  .hero-tide {
    min-height: auto;
  }

  .hero-tide__plane {
    position: relative;
    height: 48vh;
    min-height: 260px;
  }

  .hero-tide__band {
    background: var(--pearl);
    padding-top: 1.8rem;
  }
}
