:root {
  --bg: #0e150f;
  --surface: #172015;
  --surface-warm: #efe2cb;
  --surface-technical: #dfe8e1;
  --text: #f5f1e8;
  --text-dark: #141a16;
  --muted: rgba(245, 241, 232, 0.72);
  --muted-dark: rgba(20, 26, 22, 0.72);
  --accent: #d6a65f;
  --rust: #bf653d;
  --border: rgba(245, 241, 232, 0.16);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 21, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0.05rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.brand span {
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: rgba(245, 241, 232, 0.75);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.hero {
  min-height: calc(100vh - 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-copy {
  max-width: 70rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: rgba(245, 241, 232, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.4rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(3.1rem, 7vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: #11140f;
  font-weight: 800;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: rgba(245, 241, 232, 0.78);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: clamp(30rem, 54vw, 46rem);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.34);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: left center;
  opacity: 0.76;
}

.rigging-lines span {
  position: absolute;
  width: 32rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 241, 232, 0.55), transparent);
  animation: riggingDrift 9s ease-in-out infinite;
}

.rigging-lines span:nth-child(1) { top: 22%; left: -10%; rotate: 24deg; }
.rigging-lines span:nth-child(2) { top: 38%; right: -14%; rotate: -18deg; animation-delay: -2s; }
.rigging-lines span:nth-child(3) { top: 70%; left: 8%; rotate: 9deg; animation-delay: -4s; }
.rigging-lines span:nth-child(4) { top: 84%; right: 4%; rotate: -42deg; animation-delay: -6s; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
}

.trust-strip span {
  min-height: 5.5rem;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  color: rgba(245, 241, 232, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.trust-strip span:last-child {
  border-right: 0;
}

.intro,
.field-capability,
.about,
.enquiry {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.intro h2,
.field-capability h2,
.about h2,
.enquiry h2 {
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro > p:last-child {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.pathway {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
}

.pathway-copy {
  max-width: 42rem;
}

.pathway h2 {
  margin-bottom: 1.25rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(3rem, 6vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.pathway p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.58;
}

.pathway ul {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.pathway li {
  border-top: 1px solid currentColor;
  padding-top: 0.7rem;
  color: rgba(245, 241, 232, 0.76);
}

.pathway figure {
  position: relative;
  margin: 0;
  min-height: clamp(28rem, 52vw, 46rem);
  overflow: hidden;
  border: 1px solid currentColor;
  color: rgba(245, 241, 232, 0.18);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.26);
}

.pathway figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 48%, rgba(245, 241, 232, 0.26) 49% 50%, transparent 51%),
    linear-gradient(120deg, transparent 46%, rgba(245, 241, 232, 0.18) 47% 48%, transparent 49%);
  background-size: 18rem 18rem;
  opacity: 0.34;
  animation: geometryShift 12s linear infinite;
}

.pathway figure img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.pathway.warm {
  background: var(--surface-warm);
  color: var(--text-dark);
}

.pathway.warm .eyebrow,
.pathway.warm p,
.pathway.warm li {
  color: var(--muted-dark);
}

.pathway.warm h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.pathway.technical {
  background: var(--surface-technical);
  color: var(--text-dark);
}

.pathway.technical .eyebrow,
.pathway.technical p,
.pathway.technical li {
  color: var(--muted-dark);
}

.pathway.technical h2 {
  text-transform: uppercase;
}

.field-capability {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  background: #111810;
  border-top: 1px solid var(--border);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.capability-grid article {
  min-height: 18rem;
  padding: 1.3rem;
  background: #121a11;
}

.capability-grid h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.about {
  background:
    linear-gradient(130deg, rgba(14, 21, 15, 0.95), rgba(14, 21, 15, 0.78)),
    url("assets/treeworks-craft.webp") center / cover;
}

.about-panel {
  max-width: 58rem;
  border-left: 1px solid var(--accent);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.about-panel p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.enquiry {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  background: #f2eadc;
  color: var(--text-dark);
}

.enquiry .section-kicker,
.enquiry p {
  color: var(--muted-dark);
}

.enquiry p {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

form {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(20, 26, 22, 0.22);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.34);
}

label {
  display: grid;
  gap: 0.45rem;
  color: rgba(20, 26, 22, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 26, 22, 0.24);
  border-radius: 0;
  padding: 0.9rem;
  background: #fffaf0;
  color: var(--text-dark);
  font: inherit;
}

.form-button {
  width: 100%;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
  color: rgba(245, 241, 232, 0.65);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes riggingDrift {
  0%, 100% { opacity: 0.24; translate: 0 0; }
  50% { opacity: 0.9; translate: 1rem -0.5rem; }
}

@keyframes geometryShift {
  0% { background-position: 0 0; }
  100% { background-position: 18rem 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1050px) {
  .hero,
  .intro,
  .pathway,
  .field-capability,
  .enquiry {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .pathway {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 0.9rem 1rem 1rem;
  }

  nav {
    justify-content: flex-start;
    gap: 0.75rem 0.95rem;
    font-size: 0.68rem;
  }

  .hero {
    gap: 2rem;
    padding: 3rem 1rem 2.75rem;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip span {
    min-height: 4.6rem;
    padding: 0.8rem;
    font-size: 0.72rem;
  }

  .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.85rem);
    line-height: 0.95;
  }

  .lead {
    font-size: 1.06rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .button {
    min-height: 3.2rem;
  }

  .intro,
  .field-capability,
  .about,
  .enquiry {
    padding-block: 3.4rem;
  }

  .intro h2,
  .field-capability h2,
  .about h2,
  .enquiry h2 {
    font-size: clamp(2.35rem, 10vw, 3.8rem);
    line-height: 1;
  }

  .pathway {
    gap: 1.75rem;
    padding-block: 3.6rem;
  }

  .pathway h2 {
    font-size: clamp(2.45rem, 10.5vw, 4rem);
    line-height: 1;
  }

  .pathway ul {
    margin-top: 1.4rem;
  }

  .hero-visual,
  .pathway figure {
    min-height: 21rem;
  }

  .capability-grid article {
    min-height: auto;
    padding: 1.15rem;
  }

  form {
    padding: 0.85rem;
  }
}

@media (max-width: 460px) {
  .hero,
  .intro,
  .pathway,
  .field-capability,
  .about,
  .enquiry {
    padding-inline: 1rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    border-right: 0;
  }

  .hero-visual,
  .pathway figure {
    min-height: 18rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: fit-content;
  }

  footer {
    flex-direction: column;
  }
}
