:root {
  color-scheme: dark;
  --p-bg: #161c1a;
  --p-surface: #1f2725;
  --p-ink: #e3e2da;
  --p-muted: #a1aaa3;
  --p-accent: #9fc7b8;
  --p-accent-ink: #161c1a;
  --p-line: rgba(227, 226, 218, .17);
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --page-gutter: clamp(22px, 6vw, 88px);
  --header-height: 76px;
  font-family: var(--font-display);
  background: var(--p-bg);
  color: var(--p-ink);
  scroll-behavior: smooth;
}

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

html {
  min-width: 320px;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--p-bg);
  color: var(--p-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--p-accent-ink);
  background: var(--p-accent);
}

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  color: var(--p-accent-ink);
  background: var(--p-accent);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: center;
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid rgba(227, 226, 218, .12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  font-size: 14px;
}

.site-nav a,
.text-link,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--p-accent);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 44px) var(--page-gutter) 64px;
  background: var(--p-bg);
  text-align: center;
}

.glyph-field,
.hero-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glyph-field {
  display: block;
  opacity: .88;
}

.hero-wash {
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(22, 28, 26, .73) 0%, rgba(22, 28, 26, .44) 42%, rgba(22, 28, 26, .2) 78%),
    linear-gradient(0deg, rgba(22, 28, 26, .72), transparent 34%, transparent 66%, rgba(22, 28, 26, .48));
}

.hero-content {
  width: min(900px, 100%);
  animation: hero-arrive 800ms cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 13vw, 166px);
  font-weight: 500;
  letter-spacing: -.09em;
  line-height: .88;
}

.hero h1 span {
  color: var(--p-accent);
}

.hero-intro {
  max-width: 510px;
  margin: 30px auto 0;
  color: rgba(227, 226, 218, .82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--p-accent-ink);
  background: var(--p-accent);
}

.button-primary:hover {
  background: #b4d6c9;
}

.hero .button {
  margin-top: 30px;
}

.button span {
  font-size: 16px;
}

.projects-section {
  display: grid;
  min-height: 76svh;
  place-items: center;
  padding: clamp(100px, 14vw, 190px) var(--page-gutter);
  border-top: 1px solid var(--p-line);
  text-align: center;
}

.projects-copy {
  width: min(900px, 100%);
}

.projects-copy h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(50px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .98;
}

.projects-copy p {
  max-width: 620px;
  margin: 28px auto 0;
  color: rgba(227, 226, 218, .75);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.closing-section {
  position: relative;
  display: grid;
  min-height: min(860px, 100svh);
  place-items: center;
  overflow: hidden;
  padding: 120px var(--page-gutter) 112px;
  color: #161c1a;
  background: var(--p-ink);
  text-align: center;
}

.closing-section::before,
.closing-section::after {
  position: absolute;
  right: -12vw;
  bottom: -35vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(22, 28, 26, .17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.closing-section::after {
  right: -4vw;
  bottom: -27vw;
  width: 42vw;
}

.closing-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.closing-section h2 {
  font-size: clamp(68px, 10vw, 132px);
}

.closing-section h2 span {
  color: #5e8e7a;
}

.closing-copy {
  margin: 24px auto 0;
  color: rgba(22, 28, 26, .72);
  font-size: 17px;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.button-dark {
  color: var(--p-ink);
  background: #161c1a;
}

.button-dark:hover {
  background: #29332f;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: rgba(22, 28, 26, .78);
  font-size: 14px;
}

.text-link span {
  color: #416c5b;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(-2px);
}

.copy-status {
  min-height: 24px;
  margin: 8px 0 0;
  color: #416c5b;
  font-size: 13px;
}

.site-footer {
  position: absolute;
  right: var(--page-gutter);
  bottom: 24px;
  left: var(--page-gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(22, 28, 26, .2);
  color: rgba(22, 28, 26, .62);
  font-size: 12px;
}

.site-footer a {
  color: #161c1a;
}

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

@media (max-width: 640px) {
  :root {
    --page-gutter: 22px;
    --header-height: 68px;
  }

  .site-nav {
    gap: clamp(24px, 8vw, 34px);
    font-size: 13px;
  }

  .hero {
    min-height: max(680px, 100svh);
    padding-top: calc(var(--header-height) + 44px);
  }

  .hero h1 {
    font-size: clamp(72px, 18vw, 112px);
  }

  .hero-intro {
    max-width: 400px;
    margin-top: 24px;
    font-size: 17px;
  }

  .projects-section {
    min-height: 72svh;
    padding-block: 100px;
  }

  .projects-copy h2 {
    font-size: clamp(48px, 13vw, 76px);
  }

  .projects-copy p {
    margin-top: 22px;
    font-size: 16px;
  }

  .closing-section {
    min-height: 760px;
    padding: 110px var(--page-gutter) 130px;
  }

  .closing-section h2 {
    font-size: clamp(64px, 17vw, 100px);
  }

  .closing-copy {
    font-size: 16px;
  }

  .closing-actions {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer {
    bottom: 18px;
    font-size: 11px;
  }

  .closing-section::before {
    right: -48vw;
    bottom: -35vw;
    width: 110vw;
  }

  .closing-section::after {
    right: -29vw;
    bottom: -24vw;
    width: 82vw;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 68px;
  }

  .closing-section h2 {
    font-size: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
