@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #173f31;
  --forest-deep: #0d2b22;
  --parchment: #ede5d2;
  --paper: #f6f0e2;
  --orange: #e8662d;
  --moss: #82927a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--parchment);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--forest);
  background: var(--parchment);
  font-family: "Archivo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(23, 63, 49, 0.035) 1px, transparent 1px) 0 0 / 86px 100%,
    var(--parchment);
  isolation: isolate;
}

.site-header {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 24px 52px;
  border-bottom: 1px solid rgba(23, 63, 49, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-copy {
  display: grid;
  line-height: 0.94;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--orange);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
}

nav {
  display: flex;
  gap: clamp(24px, 3.1vw, 48px);
  justify-self: center;
}

nav a,
.header-link {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  color: rgba(23, 63, 49, 0.67);
  transition: color 250ms ease;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover {
  color: var(--forest);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  padding: 11px 0;
  border-bottom: 1px solid var(--forest);
  transition: color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.header-link span {
  color: var(--orange);
  font-size: 1rem;
}

.header-link:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.header-link:active {
  transform: translateY(0) scale(0.98);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 44.5% 55.5%;
  width: min(100%, 1440px);
  min-height: calc(100dvh - 88px);
  margin: 0 auto;
}

.copy-block {
  position: relative;
  z-index: 7;
  align-self: start;
  padding: clamp(66px, 9vh, 96px) 52px 140px 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(4rem, 5.4vw, 5rem);
  font-weight: 880;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--forest);
}

h1 span:nth-child(3) {
  margin-top: 8px;
  color: var(--orange);
  font-size: 0.77em;
  letter-spacing: -0.055em;
}

.intro {
  display: grid;
  grid-template-columns: minmax(210px, 315px) auto;
  align-items: end;
  gap: 25px;
  margin-top: 38px;
}

.intro p {
  margin: 0;
  color: rgba(23, 63, 49, 0.7);
  font-size: 0.84rem;
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  min-width: 176px;
  padding: 15px 17px;
  border: 1px solid var(--forest-deep);
  background: var(--orange);
  color: var(--forest-deep);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.015em;
  transition: color 280ms ease, background 280ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-cta span {
  font-size: 1rem;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-cta:hover {
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-3px);
}

.primary-cta:hover span {
  transform: translate(3px, -3px);
}

.primary-cta:active {
  transform: translateY(-1px) scale(0.98);
}

.trunk-divider {
  position: absolute;
  z-index: 6;
  top: -88px;
  bottom: 0;
  left: calc(44.5% - 42px);
  width: 94px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(237, 229, 210, 0.08), transparent 23% 70%, rgba(237, 229, 210, 0.1)),
    var(--forest-deep);
  clip-path: polygon(23% 0, 86% 0, 80% 12%, 91% 24%, 74% 37%, 88% 51%, 72% 66%, 83% 78%, 69% 100%, 11% 100%, 22% 86%, 8% 72%, 24% 57%, 10% 40%, 25% 22%);
}

.trunk-divider::before,
.trunk-divider::after {
  position: absolute;
  top: -5%;
  bottom: -5%;
  width: 1px;
  background: rgba(237, 229, 210, 0.25);
  content: "";
  transform: rotate(2deg);
}

.trunk-divider::before {
  left: 31%;
}

.trunk-divider::after {
  right: 27%;
}

.trunk-divider i {
  position: absolute;
  left: 23%;
  width: 48%;
  height: 2px;
  background: rgba(232, 102, 45, 0.55);
  transform: rotate(-22deg);
}

.trunk-divider i:nth-child(1) { top: 27%; }
.trunk-divider i:nth-child(2) { top: 53%; transform: rotate(18deg); }
.trunk-divider i:nth-child(3) { top: 78%; }

.field-visual {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.tree-rings {
  position: absolute;
  inset: 3% -10% 4% -4%;
  opacity: 0.28;
  background: repeating-radial-gradient(ellipse at 54% 50%, transparent 0 31px, var(--forest) 32px 33px, transparent 34px 46px);
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
  transform: rotate(-7deg);
}

.photo-border,
.crown-photo {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 10%;
  left: 8%;
  clip-path: polygon(48% 0, 66% 5%, 83% 14%, 95% 31%, 100% 51%, 93% 72%, 79% 89%, 58% 100%, 36% 96%, 17% 84%, 4% 66%, 0 45%, 8% 24%, 25% 9%);
}

.photo-border {
  background: var(--forest);
  transform: translate(13px, 13px) rotate(2deg);
}

.crown-photo {
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: var(--forest);
}

.crown-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(13, 43, 34, 0.28), transparent 50%),
    linear-gradient(0deg, rgba(13, 43, 34, 0.66), transparent 42%);
  content: "";
}

.crown-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(0.72) contrast(1.04);
  transform: scale(1.02);
}

.cut-note {
  position: absolute;
  right: 2%;
  bottom: 17%;
  z-index: 5;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--forest-deep);
  text-align: center;
  transform: rotate(6deg);
}

.cut-note span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cut-note strong {
  max-width: 110px;
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.1;
}

.knot-mark {
  position: absolute;
  top: 12%;
  right: 8%;
  z-index: 5;
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
}

.knot-mark svg {
  width: 58px;
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-width: 3;
}

.rope-line {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.rope-line path:nth-child(2) {
  stroke-width: 2;
  opacity: 0.75;
}

.rope-line circle {
  fill: var(--paper);
  stroke-width: 4;
}

.scope-line {
  position: absolute;
  z-index: 9;
  right: 52px;
  bottom: 28px;
  left: 58px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: end;
  gap: 44px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 63, 49, 0.3);
}

.scope-line p {
  max-width: 350px;
  margin: 0;
  color: rgba(23, 63, 49, 0.67);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.scope-line ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-line li {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  font-weight: 480;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-line li span {
  margin-right: 8px;
  color: var(--orange);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.54rem;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 30px;
  }

  .copy-block {
    padding-left: 32px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .primary-cta {
    width: 185px;
  }

  .scope-line {
    left: 32px;
  }
}

@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(90deg, transparent 34px, rgba(23, 63, 49, 0.09) 35px, transparent 36px),
      var(--parchment);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 14px 18px 14px 24px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 0.7rem;
  }

  .brand-copy small {
    font-size: 0.47rem;
  }

  nav {
    display: none;
  }

  .header-link {
    gap: 6px;
    font-size: 0;
  }

  .header-link::before {
    content: "Tree plan";
    font-size: 0.53rem;
  }

  .hero-grid {
    display: block;
    min-height: calc(100dvh - 70px);
  }

  .copy-block {
    padding: 24px 18px 340px 28px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 0.51rem;
  }

  .eyebrow::before {
    width: 7px;
  }

  h1 {
    max-width: 345px;
    font-size: clamp(2.75rem, 12.3vw, 3.2rem);
    line-height: 0.89;
  }

  h1 span:nth-child(3) {
    margin-top: 5px;
    font-size: 0.78em;
  }

  .intro {
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 21px;
  }

  .intro p {
    max-width: 172px;
    font-size: 0.68rem;
    line-height: 1.43;
  }

  .primary-cta {
    align-self: end;
    gap: 8px;
    width: auto;
    min-width: 145px;
    padding: 12px 13px;
    font-size: 0.61rem;
  }

  .trunk-divider {
    top: -70px;
    bottom: 0;
    left: -7px;
    width: 24px;
    clip-path: polygon(20% 0, 90% 0, 76% 17%, 98% 35%, 73% 52%, 92% 72%, 68% 100%, 0 100%, 16% 79%, 0 59%, 18% 38%, 2% 20%);
  }

  .field-visual {
    position: absolute;
    right: -12px;
    bottom: 0;
    left: 10px;
    height: 326px;
  }

  .tree-rings {
    inset: 0 -15% -10% -4%;
    background: repeating-radial-gradient(ellipse at 56% 55%, transparent 0 18px, var(--forest) 19px 20px, transparent 21px 28px);
  }

  .photo-border,
  .crown-photo {
    top: 8%;
    right: 8%;
    bottom: 4%;
    left: 12%;
  }

  .crown-photo img {
    object-position: 50% center;
  }

  .cut-note {
    right: 0;
    bottom: 10%;
    width: 91px;
  }

  .cut-note span {
    font-size: 0.4rem;
  }

  .cut-note strong {
    max-width: 72px;
    font-size: 0.65rem;
  }

  .knot-mark {
    top: 7%;
    right: 8%;
    width: 52px;
  }

  .knot-mark svg {
    width: 40px;
  }

  .rope-line {
    width: 100%;
    height: 100%;
    stroke-width: 7;
  }

  .rope-line path:first-child {
    display: none;
  }

  .rope-line path:nth-child(2) {
    transform: translate3d(-410px, 520px, 0) scale(0.72);
    transform-origin: center;
  }

  .rope-line circle {
    display: none;
  }

  .scope-line {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
