:root {
  --ink: #0e1116;
  --ink-soft: #151a22;
  --sand: #e9dcc4;
  --sand-dim: #b7ab95;
  --shell: #f3c99a;
  --tide: #6fa3b8;
  --line: rgba(233, 220, 196, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tide {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
}

.tide span {
  position: absolute;
  border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}

.tide span:nth-child(1) {
  width: 46vmax;
  height: 46vmax;
  left: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(243, 201, 154, 0.35), transparent 65%);
}

.tide span:nth-child(2) {
  width: 52vmax;
  height: 52vmax;
  right: 2%;
  top: 30%;
  background: radial-gradient(circle, rgba(111, 163, 184, 0.3), transparent 65%);
  animation-duration: 32s;
  animation-delay: -8s;
}

.tide span:nth-child(3) {
  width: 36vmax;
  height: 36vmax;
  left: 38%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(233, 220, 196, 0.18), transparent 65%);
  animation-duration: 38s;
  animation-delay: -16s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6vmax, -4vmax, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-5vmax, 3vmax, 0) scale(0.94);
  }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

header {
  padding: 28px clamp(16px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand img {
  width: 30px;
  height: 24px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 64px;
}

.hero-shell {
  width: clamp(120px, 22vw, 190px);
  color: var(--shell);
  animation: float 9s ease-in-out infinite;
}

.hero-shell svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-shell .shell-outline {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.hero-shell .shell-ribs path {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.hero-shell .shell-ribs path:nth-child(1) { animation-delay: 1.4s; }
.hero-shell .shell-ribs path:nth-child(2) { animation-delay: 1.55s; }
.hero-shell .shell-ribs path:nth-child(3) { animation-delay: 1.7s; }
.hero-shell .shell-ribs path:nth-child(4) { animation-delay: 1.85s; }
.hero-shell .shell-ribs path:nth-child(5) { animation-delay: 2s; }
.hero-shell .shell-ribs path:nth-child(6) { animation-delay: 2.15s; }

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.hero h1 {
  margin: 36px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  animation: rise 1.4s ease 1.2s forwards;
}

.tagline {
  margin: 0;
  color: var(--sand-dim);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1.4s ease 1.6s forwards;
}

.thoughts {
  position: relative;
  width: min(640px, 100%);
  min-height: 3.2em;
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.5;
  opacity: 0;
  animation: rise 1.4s ease 2.2s forwards;
}

.thoughts p {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.thoughts p.is-visible {
  opacity: 1;
  transform: none;
}

.principles {
  list-style: none;
  margin: 8px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  width: min(440px, 92%);
  display: grid;
  gap: 14px;
  color: var(--sand-dim);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.principles li {
  opacity: 0;
  animation: rise 1.2s ease forwards;
}

.principles li:nth-child(1) { animation-delay: 3s; }
.principles li:nth-child(2) { animation-delay: 3.4s; }
.principles li:nth-child(3) { animation-delay: 3.8s; }

@media (max-width: 600px) {
  .thoughts {
    min-height: 4.6em;
  }
}

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

footer {
  padding: 24px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--sand-dim);
  font-size: 0.85rem;
}

footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

footer a:hover {
  color: var(--sand);
  border-color: var(--sand-dim);
}

.legal {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 16px 72px;
  line-height: 1.7;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 24px 0 8px;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--sand-dim);
  font-size: 0.9rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 40px 0 8px;
  color: var(--shell);
}

.legal p,
.legal li {
  color: #d9ccb4;
}

.legal ul {
  padding-left: 1.2em;
}

.legal address {
  font-style: normal;
}

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

  .hero h1,
  .tagline,
  .thoughts,
  .principles li {
    opacity: 1;
  }

  .hero-shell .shell-outline,
  .hero-shell .shell-ribs path {
    stroke-dashoffset: 0;
  }
}
