:root {
  --bg: #f3f4ef;
  --ink: #18221c;
  --muted: #4b5850;
  --accent: #22573a;
  --accent-deep: #173d29;
  --line: #d6ddd2;
  --white: #ffffff;
  --surface-mint: #e6ece4;
  --radius-lg: 1.24rem;
  --shadow-sm: 0 14px 34px -26px rgba(22, 31, 25, 0.38);
  --shadow-md: 0 26px 60px -36px rgba(20, 30, 24, 0.35);
  --shadow-lg: 0 34px 84px -44px rgba(16, 24, 19, 0.42);
  --wash: radial-gradient(1200px 520px at 10% -10%, rgba(173, 188, 165, 0.22), transparent 62%),
    radial-gradient(900px 420px at 100% 0%, rgba(136, 154, 142, 0.14), transparent 58%);
  --hero-panel: linear-gradient(165deg, #ffffff 0%, #f5f7f2 100%);
}

body.page-about {
  --accent: #3d6845;
  --accent-deep: #2c4a31;
  --accent-soft: #739a7a;
}

body.page-services {
  --accent: #2f6347;
  --accent-deep: #214733;
  --accent-soft: #6f987f;
}

body.page-technology {
  --accent: #2a6663;
  --accent-deep: #1d4a47;
  --accent-soft: #68918f;
  --focus-ring: #2a6663;
}

body.page-partnerships {
  --accent: #355f72;
  --accent-deep: #264454;
  --accent-soft: #6f8fa0;
  --focus-ring: #355f72;
}

body.page-labour {
  --accent: #7b6131;
  --accent-deep: #5b4724;
  --accent-soft: #a98e61;
  --focus-ring: #7b6131;
}

body.page-contact {
  --accent: #3d6384;
  --accent-deep: #2b4960;
  --accent-soft: #7592ab;
  --focus-ring: #3d6384;
}

body.page-intake {
  --accent: #7b5638;
  --accent-deep: #5a3f2a;
  --accent-soft: #a58466;
  --focus-ring: #7b5638;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--wash), var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 2.4vw, 2.6rem);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(250, 253, 249, 0.9));
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: clamp(2.35rem, 5vw, 2.85rem);
  height: clamp(2.35rem, 5vw, 2.85rem);
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
  display: block;
}

.brand-name {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: clamp(0.65rem, 1.4vw, 1.2rem);
}

.nav a {
  text-decoration: none;
  color: #163022;
  font-weight: 700;
  font-size: 0.96rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
}

main {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 13ch;
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.3vw, 3rem);
}

h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-deep);
  font-size: 0.79rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #eaf5eb;
  border: 1px solid #cbe0ce;
}

.lead {
  margin: 0.95rem 0 0.35rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 38ch;
}

.btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.hero-copy {
  background: var(--hero-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2.3rem);
  box-shadow: var(--shadow-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  background: var(--surface-mint);
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.js .reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js .reveal.visible,
.reveal.visible,
.hero.reveal,
.labour-hero.reveal,
.partnerships-hero.reveal,
.smart-hero.reveal,
main > section:first-of-type.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 980px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  main {
    padding: 2.2rem 0 3.5rem;
  }

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

  .site-header {
    padding: 0.75rem 0.95rem;
    gap: 0.55rem;
  }

  .brand-name {
    max-width: 12ch;
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    min-width: 200px;
    display: none;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.65rem;
  }

  .nav.open {
    display: flex;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
    max-width: 12ch;
  }

  .hero-visual {
    min-height: 235px;
  }
}
