:root {
  --ink: #14201c;
  --ink-soft: #3b4a44;
  --jade: #2f6b5a;
  --jade-deep: #1f3d36;
  --mist: #e7efe9;
  --paper: #f4f8f5;
  --line: rgba(20, 32, 28, 0.12);
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 12% -10%, #d7e7df 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 8%, #c9ddd3 0%, transparent 50%),
    linear-gradient(180deg, #eef4f0 0%, var(--paper) 42%, #e3ebe6 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.mist-a {
  width: 42vw;
  height: 42vw;
  min-width: 280px;
  min-height: 280px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, #b7d0c4 0%, transparent 70%);
}

.mist-b {
  width: 36vw;
  height: 36vw;
  min-width: 240px;
  min-height: 240px;
  right: -4%;
  top: 18%;
  background: radial-gradient(circle, #a8c4b7 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -4s;
}

.flow {
  position: absolute;
  inset: auto 0 8% 0;
  height: 40vh;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(47, 107, 90, 0.12), transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
}

.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.header-mail {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header-mail:hover,
.header-mail:focus-visible {
  color: var(--jade-deep);
  border-color: currentColor;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.5rem 2.5rem;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.brand {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--ink);
}

.headline {
  margin: 0.4rem 0 0;
  max-width: 14ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--jade-deep);
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  color: var(--ink-soft);
}

.cta-row {
  margin-top: 0.6rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--jade-deep);
  border-bottom: 1px solid rgba(31, 61, 54, 0.35);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.cta::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  border-color: var(--jade);
  transform: translateY(-1px);
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: translateX(4px);
}

.hero-plane {
  margin-top: clamp(1.5rem, 5vh, 3rem);
  width: 100%;
  max-width: 46rem;
  justify-self: stretch;
}

.chi-mark {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.chi-mark path:first-of-type {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s var(--ease) 0.4s forwards;
}

.about,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.about {
  border-top: 1px solid var(--line);
}

.about h2,
.contact h2 {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about p,
.contact p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact {
  padding-top: 0;
}

.mail {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--jade-deep);
  border-bottom: 1px solid rgba(31, 61, 54, 0.28);
  transition: border-color 0.3s var(--ease);
}

.mail:hover,
.mail:focus-visible {
  border-color: var(--jade);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

.delay-4 {
  animation-delay: 0.48s;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.08);
  }
}

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

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1.15rem;
  }

  .hero,
  .about,
  .contact,
  .site-footer {
    padding-inline: 1.15rem;
  }

  .brand {
    letter-spacing: 0.05em;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist,
  .flow,
  .reveal,
  .chi-mark path:first-of-type {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .chi-mark path:first-of-type {
    stroke-dashoffset: 0;
  }
}
