:root {
  --ink: #142428;
  --ink-soft: #3a4f55;
  --paper: #e7eef1;
  --mist: #c9dde3;
  --sea: #1f6a66;
  --sea-deep: #0e3f3d;
  --sand: #f4ebe0;
  --line: rgba(20, 36, 40, 0.14);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  line-height: 1.55;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 18% 12%, #f7f1e8 0%, transparent 55%),
    radial-gradient(900px 600px at 88% 18%, #b7d5d8 0%, transparent 50%),
    linear-gradient(180deg, #dbe8ec 0%, #c5d8de 42%, #a9c5cb 100%);
}

.mist {
  position: absolute;
  inset: -10% -5% auto;
  height: 70%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.mist-a {
  background: radial-gradient(circle at 30% 40%, rgba(255, 250, 242, 0.85), transparent 60%);
}

.mist-b {
  background: radial-gradient(circle at 70% 30%, rgba(90, 150, 148, 0.35), transparent 58%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(48vh, 420px);
  opacity: 0.92;
}

.land-far {
  fill: #6f9497;
}

.land-near {
  fill: #3f6b6a;
}

.house {
  fill: var(--sand);
  stroke: var(--sea-deep);
  stroke-width: 3;
  paint-order: stroke fill;
  transform-origin: 1128px 300px;
  animation: house-breathe 7s ease-in-out infinite;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(7rem, 18vh, 12rem);
  max-width: 64rem;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.1s;
}

.headline {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--sea-deep);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease forwards 0.28s;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s ease forwards 0.42s;
}

.cta-row {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.9s ease forwards 0.58s;
}

.cta {
  position: relative;
  display: inline-block;
  color: var(--sea);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-bottom: 0.2rem;
}

.cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  animation: underline-in 0.7s ease forwards 1s;
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: scaleX(1);
}

.cta:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 6px;
}

.lab {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem) 4rem;
  background: linear-gradient(180deg, rgba(231, 238, 241, 0.2), rgba(244, 235, 224, 0.92));
  border-top: 1px solid var(--line);
}

.lab h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.lab-note {
  margin: 0.7rem 0 1.8rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}

.lab-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
}

.lab-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.lab-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lab-status {
  color: var(--sea);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer {
  padding: 1.4rem clamp(2rem, 6vw, 5rem) 2.2rem;
  background: rgba(244, 235, 224, 0.92);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

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

@keyframes drift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(3%, 1.5%, 0) scale(1.08);
  }
}

@keyframes house-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes underline-in {
  to {
    transform: scaleX(1);
  }
}

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

  .brand,
  .headline,
  .lede,
  .cta-row {
    opacity: 1;
    transform: none;
  }

  .cta::after {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 38vh;
  }

  .lede {
    max-width: 22ch;
  }
}
