:root {
  --ink: #1b3d2b;
  --ink-soft: #3e5a4b;
  --muted: #5f7568;
  --cream: #f6f3ec;
  --cream-deep: #cfd9d0;
  --line: #d9d3c5;
  --wash: #dde8de;
  --forest: #0f2619;
  --pine: #2f6b47;
  --plate: rgba(27, 61, 43, 0.82);
  --zoom-duration: 2.2s;
  --fade-duration: 0.7s;
  --fade-delay: 1.8s;
  --reveal-delay: 2s;
  --font-sans: Manrope, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --page: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

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

a {
  color: var(--ink);
}

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

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b1f14;
  pointer-events: none;
}

.bg__video {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
}

.bg__video + .bg__video {
  opacity: 0;
}

.bg__wash {
  position: absolute;
  inset: 0;
  background: var(--wash);
  opacity: 0.72;
  transition: opacity 1.2s ease;
}

html.is-intro .bg__wash {
  opacity: 0;
}

html.is-intro.is-open .bg__wash {
  opacity: 0.72;
  transition: opacity var(--zoom-duration) cubic-bezier(0.7, 0, 0.35, 1);
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.intro {
  display: none;
}

html.is-intro .intro {
  --logo: min(64vmin, 340px);
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: pointer;
}

.intro__fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transition: opacity 1.4s ease;
}

.intro__fill.is-clear {
  opacity: 0;
}

.intro__veil {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--forest);
  -webkit-mask-image: linear-gradient(#000, #000), url("../assets/logo-tree.svg");
  mask-image: linear-gradient(#000, #000), url("../assets/logo-tree.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-size: 100% 100%, var(--logo) var(--logo);
  mask-size: 100% 100%, var(--logo) var(--logo);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

html.is-open .intro__veil {
  animation:
    pp-zoom-mask var(--zoom-duration) cubic-bezier(0.7, 0, 0.35, 1) both,
    pp-fade-out var(--fade-duration) ease var(--fade-delay) both;
}

.intro__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--logo);
  height: var(--logo);
  translate: -50% -50%;
}

html.is-open .intro__burst {
  animation: pp-zoom-scale var(--zoom-duration) cubic-bezier(0.7, 0, 0.35, 1) both;
}

.intro__burst span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1b3f2e;
}

.intro:focus-visible {
  outline: none;
}

.header,
.main,
.footer {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding-block: 28px;
}

.brand,
.footer__mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand img,
.footer__mark img {
  width: 48px;
  height: 48px;
  display: block;
}

.footer__mark {
  gap: 10px;
  font-size: 13px;
}

.footer__mark img {
  width: 28px;
  height: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.button--primary {
  background: var(--ink);
  color: var(--cream);
  padding: 15px 26px;
}

.button--primary:hover {
  background: var(--pine);
  color: var(--cream);
}

.button--ghost {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.main {
  flex: 1;
  padding-top: clamp(48px, 9vh, 120px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero h1,
.hero__copy {
  animation: pp-rise 0.7s ease both;
}

.hero__copy {
  animation-delay: 0.15s;
}

html.is-intro .hero h1,
html.is-intro .hero__copy {
  animation-play-state: paused;
}

html.is-open .hero h1 {
  animation-play-state: running;
  animation-delay: var(--reveal-delay);
}

html.is-open .hero__copy {
  animation-play-state: running;
  animation-delay: calc(var(--reveal-delay) + 0.15s);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 440px;
}

.hero__copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 48px;
  margin-top: clamp(56px, 10vh, 110px);
  padding-top: 64px;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.services h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.services p,
.approach p {
  margin: 0;
  text-wrap: pretty;
}

.services p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.approach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: center;
  margin-top: clamp(72px, 12vh, 140px);
  padding: clamp(40px, 6vw, 80px);
  border-radius: 24px;
  color: var(--cream);
  background: var(--plate);
}

.approach blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  text-wrap: balance;
}

.approach p {
  max-width: 420px;
  justify-self: end;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-deep);
}

.footer {
  margin-top: clamp(64px, 10vh, 120px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer a {
  display: inline-block;
  padding-block: 12px;
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

html.is-intro .reveal {
  animation: pp-reveal 1.2s ease var(--reveal-delay) both;
  animation-play-state: paused;
}

html.is-intro.is-open .reveal {
  animation-play-state: running;
}

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

@keyframes pp-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pp-zoom-mask {
  from {
    -webkit-mask-size: 100% 100%, var(--logo) var(--logo);
    mask-size: 100% 100%, var(--logo) var(--logo);
  }
  to {
    -webkit-mask-size: 100% 100%, calc(var(--logo) * 45) calc(var(--logo) * 45);
    mask-size: 100% 100%, calc(var(--logo) * 45) calc(var(--logo) * 45);
  }
}

@keyframes pp-zoom-scale {
  from { transform: scale(1); }
  to { transform: scale(45); }
}

@keyframes pp-fade-out {
  from { opacity: 1; }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 720px) {
  .header {
    padding-block: 20px;
  }

  .brand {
    gap: 10px;
    font-size: 13px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  h1 {
    max-width: none;
  }

  .approach p {
    justify-self: start;
  }
}

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

  .bg {
    display: none;
  }

  .hero h1,
  .hero__copy,
  .reveal {
    animation: none;
  }
}
