:root {
  --black: #020202;
  --ink: #f6f0df;
  --muted: #c9bfa4;
  --warm: #d9a441;
  --ember: #a65322;
  --moss: #7b8d46;
  --line: rgba(246, 240, 223, 0.18);
  --line-strong: rgba(246, 240, 223, 0.34);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    var(--black);
  color: var(--ink);
  font-family: "Montserrat", "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.92), rgba(2, 2, 2, 0.48), transparent);
}

.brand img {
  width: clamp(118px, 16vw, 172px);
}

nav {
  display: flex;
  gap: clamp(0.75rem, 2.4vw, 2rem);
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  text-decoration: none;
  color: rgba(246, 240, 223, 0.78);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.nav-contact {
  color: var(--ink);
  border-bottom: 1px solid var(--warm);
  padding-bottom: 0.25rem;
}

.mobile-pills {
  display: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.75rem);
  padding: clamp(5.2rem, 7vw, 6.4rem) 0 3rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  text-align: center;
  min-width: 0;
  z-index: 1;
}

.quote {
  margin: 0.8rem 0 0;
  color: var(--warm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: none;
  font-size: clamp(1.85rem, 3.6vw, 3.85rem);
  text-wrap: balance;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.lead,
.story-copy p,
.garden-copy p,
.care-copy p,
.closing-copy p,
.contact-section p {
  color: rgba(246, 240, 223, 0.82);
  font-size: clamp(1.05rem, 1.65vw, 1.55rem);
}

.lead {
  max-width: 48rem;
  margin: 0.85rem auto 0;
}

.primary-link,
button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid rgba(217, 164, 65, 0.72);
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.08);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible,
button:hover,
button:focus-visible {
  background: rgba(217, 164, 65, 0.24);
  border-color: rgba(217, 164, 65, 0.96);
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  order: -1;
  isolation: isolate;
  padding: 0 clamp(0rem, 2vw, 1.5rem);
  min-width: 0;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -8% -16%;
  z-index: -1;
  background: url("./assets/hamer-living-tree.png") center / cover no-repeat;
  opacity: 0.28;
  filter: blur(34px) saturate(1.15);
  transform: scale(1.04);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 42%, rgba(0, 0, 0, 0.48) 62%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0 42%, rgba(0, 0, 0, 0.48) 62%, transparent 78%);
}

.tree {
  width: min(112rem, calc(100vw + 6rem));
  max-width: none;
  max-height: 70svh;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 3.5rem rgba(0, 0, 0, 0.72)) saturate(1.05);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 44rem;
  position: relative;
  overflow: hidden;
  background: #050505;
}

.principle-large {
  grid-row: span 2;
}

.image-frame {
  position: absolute;
  inset: 0;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 2, 2, 0.82));
}

.image-frame img,
.story-image img,
.care-photo img,
.closing > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle-copy {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.principle h2 {
  max-width: 8ch;
  font-size: clamp(2.1rem, 4.4vw, 4.8rem);
}

.principle p {
  max-width: 34rem;
  color: rgba(246, 240, 223, 0.86);
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
}

.story-section,
.flow-section,
.care-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.story-image,
.care-photo {
  height: clamp(24rem, 38vw, 36rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-copy,
.flow-copy,
.care-copy,
.closing-copy {
  max-width: 43rem;
}

.story-copy p,
.flow-copy p,
.care-copy p,
.closing-copy p {
  margin: 1.4rem 0 0;
}

.story-cta {
  margin-top: 2rem;
}

.flow-section {
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 164, 65, 0.11), transparent 38%),
    rgba(246, 240, 223, 0.035);
}

.flow-step {
  min-height: clamp(17rem, 24vw, 22rem);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 0.7rem;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  border-right: 1px solid var(--line);
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step span {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 164, 65, 0.72);
  border-radius: 999px;
  color: var(--warm);
  font-family: Georgia, "Times New Roman", serif;
}

.flow-step h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  padding-top: clamp(1.75rem, 4vw, 3.1rem);
}

.flow-step p {
  margin: 0;
  color: rgba(246, 240, 223, 0.76);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
}

.care-section {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.92fr);
}

.care-copy ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.65rem;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(246, 240, 223, 0.82);
}

.care-copy li {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.closing {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.closing > img {
  position: absolute;
  inset: 0;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 2, 2, 0.88), rgba(2, 2, 2, 0.42), rgba(2, 2, 2, 0.15));
}

.closing-copy {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 5vw, 5rem);
}

.contact-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 10ch;
}

form {
  display: grid;
  gap: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

label {
  display: grid;
  gap: 0.45rem;
  color: rgba(246, 240, 223, 0.74);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(246, 240, 223, 0.075);
  color: var(--ink);
  font: 1rem Arial, Helvetica, sans-serif;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(217, 164, 65, 0.92);
  background: rgba(246, 240, 223, 0.1);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.12);
}

button {
  cursor: pointer;
  background: rgba(217, 164, 65, 0.18);
}

.reveal {
  opacity: 1;
  animation: reveal-in 620ms ease both;
}

.hero.reveal {
  animation-duration: 720ms;
}

@keyframes reveal-in {
  from {
    opacity: 0.92;
    transform: translateY(8px);
  }

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

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

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

  .primary-link,
  button,
  nav a,
  input,
  textarea {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .site-header nav {
    display: none;
  }

  .mobile-pills {
    position: sticky;
    top: 4.5rem;
    z-index: 9;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1rem 0.8rem;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0.84), rgba(2, 2, 2, 0));
    font-family: Arial, Helvetica, sans-serif;
  }

  .mobile-pills a {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.86rem;
    border: 1px solid rgba(246, 240, 223, 0.22);
    border-radius: 999px;
    background: rgba(2, 2, 2, 0.72);
    color: rgba(246, 240, 223, 0.86);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .hero,
  .story-section,
  .flow-section,
  .care-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.25rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.9rem);
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .hero-art {
    margin-top: 0;
    width: min(360px, calc(100vw - 30px));
    height: min(72vh, 640px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .tree {
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
  }

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

  .principle,
  .principle-large {
    min-height: 34rem;
    grid-row: auto;
  }

  .flow-section .flow-copy {
    order: -1;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .care-section .care-copy {
    order: -1;
  }

  .story-image,
  .care-photo {
    height: 26rem;
  }

  .closing {
    min-height: 78svh;
  }

  .closing::after {
    background: linear-gradient(180deg, rgba(2, 2, 2, 0.18), rgba(2, 2, 2, 0.92));
  }
}

@media (max-width: 540px) {
  .hero,
  .story-section,
  .flow-section,
  .care-section,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lead,
  .story-copy p,
  .flow-copy p,
  .care-copy p,
  .closing-copy p,
  .contact-section p,
  .principle p {
    font-size: 1.05rem;
  }

  .hero-copy {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy h1 {
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.85rem, 7.4vw, 2.25rem);
  }

  .hero-copy .lead,
  .hero-copy .quote {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .principle {
    min-height: 31rem;
  }

  .flow-step {
    padding: 1.1rem;
  }
}
