/* KAYATREE: tokens */
:root {
  --green: #1F5E36;
  --green-hover: #174A2A;
  --green-deep: #14301E;
  --cream: #F5F1E8;
  --sand: #EAE2D2;
  --terracotta: #B5653F;
  --clay: #E8D3B4;
  --sage: #D9E3D7;
  --footer-text: #C9D6C8;
  --ink: #1E2A22;
  --ink-2: #3B463E;
  --ink-3: #4A554D;
  --brown: #6B5A45;
  --line: rgba(31, 94, 54, .3);
  --line-on-terracotta: rgba(245, 241, 232, .4);

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mark: 'Josefin Sans', sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 140px);
  --header-h: 76px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--terracotta); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }
section[id] { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: var(--cream); }
.section--terracotta { background: var(--terracotta); color: var(--cream); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 80px;
}
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
}

/* Type */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 20px;
}
.num {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .16em; color: var(--terracotta);
}
.h2 {
  font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; color: var(--green);
}
.h2--big { font-size: clamp(44px, 6vw, 84px); line-height: 1; }
.h3 { font-weight: 500; letter-spacing: -.01em; }
.lead { max-width: 46ch; }
.small { font-size: 17px; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.6;
  padding: 18px 30px 16px; border-radius: 999px;
  transition: background-color .15s, color .15s;
}
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-hover); color: var(--cream); }
.btn--outline { border: 1px solid var(--green); color: var(--green); padding: 17px 30px 15px; }
.btn--outline:hover { background: var(--green); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: var(--clay); color: var(--green); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 241, 232, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 94, 54, .12);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.tree-mark { display: block; overflow: hidden; }
.tree-mark--sm { width: 44px; height: 42px; }
.tree-mark--sm img { width: 44px; height: auto; }
.tree-mark--lg { width: 96px; height: 92px; }
.tree-mark--lg img { width: 96px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.wordmark {
  font-family: var(--font-mark); font-weight: 300; font-size: 22px;
  letter-spacing: .16em; color: var(--green);
}
.nav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 36px);
  font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--terracotta); }
.nav .nav-cta { color: var(--cream); background: var(--green); padding: 12px 20px 10px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--cream); background: var(--green-hover); }

/* On narrow screens the section links drop out so the header keeps its 76px height */
@media (max-width: 860px) {
  .nav .nav-link { display: none; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 18px; letter-spacing: .12em; }
  .nav .nav-cta { padding: 10px 14px 8px; font-size: 12px; letter-spacing: .1em; }
}

/* Hero (split with arch) */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-weight: 600; font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -.025em; color: var(--green);
}
.hero h1 em { color: var(--terracotta); }
.hero p { margin-top: 32px; max-width: 48ch; font-size: clamp(18px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-media {
  aspect-ratio: 4 / 5; width: 100%;
  border-radius: 240px 240px 8px 8px; overflow: hidden; background: var(--sand);
}
.hero-media img, .media img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2px; background: rgba(31, 94, 54, .18);
  margin-top: 64px;
}
.tile {
  background: var(--cream);
  padding: 40px 32px 44px; min-height: 380px;
  display: flex; flex-direction: column; gap: 18px;
}
.tile h3 { font-size: 30px; line-height: 1.15; color: var(--green); }

/* Audiences */
.audience-title { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; max-width: 24ch; }
.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px 40px; margin-top: 72px;
}
.audiences li { border-top: 1px solid var(--green); padding-top: 24px; }
.audiences h3 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }

/* Why */
.section--green .eyebrow { color: var(--clay); }
.section--green .h2 { color: var(--cream); }
.section--green .h2 em { color: var(--clay); }
.why-body {
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55;
  display: flex; flex-direction: column; gap: 24px;
}
.why-body p + p { color: var(--sage); }

/* Approach */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 20px; margin-top: 72px;
}
.pillar { display: flex; flex-direction: column; gap: 20px; }
.pillar .media { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand); }
.pillar-head { display: flex; gap: 14px; align-items: baseline; }
.pillar h3 { font-size: 28px; color: var(--green); }

/* Projects */
.projects-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-end; margin-bottom: 56px;
}
.projects-count {
  font-weight: 600; font-size: 14px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.project-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px 72px; align-items: start;
}
.project-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.project-tab {
  appearance: none; background: none; border: 0; margin: 0; font: inherit; text-align: left;
  cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  transition: color .15s;
}
.project-tab:hover, .project-tab[aria-selected="true"] { color: var(--green); }
.project-tab .num { font-size: 13px; letter-spacing: .14em; }
.project-tab .name { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 400; }
.project-tab[aria-selected="true"] .name { font-weight: 600; }
.project-tab .place {
  font-weight: 600; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brown); text-align: right;
}
.project-panels { position: sticky; top: 100px; }
.project-panel { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 100px; }
.project-panel[hidden] { display: none; }
.project-panel .media { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--cream); }
.media--empty {
  display: grid; place-items: center; align-content: center; gap: 14px;
  color: var(--brown); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.media--empty .tree-mark { width: 72px; height: 69px; opacity: .45; }
.media--empty .tree-mark img { width: 72px; height: auto; }
.label {
  font-weight: 600; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px;
}
.project-start { font-size: 20px; line-height: 1.5; }
.project-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px 40px;
}
.project-lists .label { margin-bottom: 12px; }
.bullets { display: flex; flex-direction: column; gap: 8px; }
.bullets li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.bullets--result li::before { background: none; border: 1px solid var(--terracotta); }

/* How it works */
.section--terracotta .eyebrow { color: #F5E6D2; }
.section--terracotta .h2 { color: var(--cream); }
.steps-intro { margin-top: 28px; max-width: 40ch; }
.steps { border-top: 1px solid var(--line-on-terracotta); }
.steps li {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 28px 0; border-bottom: 1px solid var(--line-on-terracotta);
}
.steps .num { color: var(--cream); padding-top: 8px; }
.steps h3 { font-size: 28px; margin-bottom: 6px; }
.steps p { font-size: 17px; }

/* About */
.about { align-items: center; gap: 56px 80px; }
.about .media { aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; background: var(--sand); }
.about .h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; }
.about p { margin-top: 24px; max-width: 46ch; }
.stats {
  display: flex; flex-wrap: wrap; gap: 56px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stat-value {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em;
  font-size: 80px; line-height: 1; color: var(--green);
}
.stat-label {
  font-weight: 600; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brown); margin-top: 10px;
}

/* Contact */
.contact { padding: clamp(96px, 12vw, 170px) 0; text-align: center; }
.contact .container { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { margin: 24px 0 20px; }
.contact .h2 { line-height: 1.02; }
.contact p { margin-top: 28px; max-width: 44ch; font-size: 20px; }
.contact .btn { margin-top: 44px; padding: 20px 36px 18px; }
.contact-email { margin-top: 20px; color: var(--sage); font-size: 17px; }
.contact-email:hover { color: var(--cream); }

/* Footer */
.site-footer {
  background: var(--green-deep); color: var(--footer-text);
  font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.site-footer .container {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
