/* =========================================================
   TrueLeaf Tech — shared stylesheet
   Aesthetic: editorial-tech, warm cream + deep forest green
   ========================================================= */

:root {
  --cream: #F5F1E8;
  --paper: #FAF7F0;
  --white: #FFFFFF;
  --ink: #0E1A12;
  --ink-soft: #2D3A30;
  --moss: #4A5D4F;
  --sage: #8B9D87;
  --forest: #1F4A2C;
  --leaf: #4A8B5C;
  --gold: #B8956A;
  --line: #DCD5C2;
  --line-soft: #E8E2D0;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1200px;
  --container-wide: 1320px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 18, 0.04), 0 2px 6px rgba(14, 26, 18, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 26, 18, 0.06), 0 12px 28px rgba(14, 26, 18, 0.06);
  --shadow-lg: 0 12px 32px rgba(14, 26, 18, 0.10), 0 24px 60px rgba(14, 26, 18, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 74, 44, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--forest); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================ TYPOGRAPHY ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -0.015em; }
h4 { font-size: 1.35rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--moss);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 65ch;
}

.serif-italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--forest); }

/* ============================ LAYOUT ============================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 + .lead { margin-top: 22px; }

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

.btn-outline-light {
  border: 1px solid rgba(245, 241, 232, 0.3);
  color: var(--paper);
  background: transparent;
}
.btn-outline-light:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}
.link-underline:hover { gap: 14px; }

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--forest);
  border-radius: 10px;
  color: var(--paper);
  flex: none;
}
.brand strong { font-weight: 500; }
.brand em { font-style: italic; color: var(--forest); font-variation-settings: "opsz" 144, "SOFT" 100; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--forest);
  transition: width 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; }
.primary-nav a.is-active { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ============================ HERO ============================ */

.hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.hero-decor.tl {
  top: 60px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(74, 139, 92, 0.18), transparent 65%);
  filter: blur(40px);
}
.hero-decor.br {
  bottom: -80px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.18), transparent 65%);
  filter: blur(40px);
}

.hero h1 {
  max-width: 18ch;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--forest);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 18%;
  height: 0.5em;
  background: rgba(74, 139, 92, 0.22);
  z-index: -1;
  border-radius: 4px;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-top: 56px;
  align-items: end;
}
.hero-meta .lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stats div span {
  font-family: var(--font-display);
  font-size: 2.3rem;
  display: block;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats div p {
  font-size: 0.85rem;
  color: var(--moss);
  letter-spacing: 0.04em;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Inner page hero */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.page-hero h1 { max-width: 16ch; margin-top: 18px; }
.page-hero .lead { margin-top: 28px; }

/* ============================ FEATURED WORK ============================ */

.work-list { display: grid; gap: clamp(24px, 4vw, 56px); }

.work-card {
  display: grid;
  grid-template-columns: 80px 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.work-card:last-child { border-bottom: 1px solid var(--line); }

.work-card .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--moss);
  letter-spacing: 0.1em;
}

.work-card .info h3 {
  margin-bottom: 14px;
  transition: color 0.3s var(--ease);
}
.work-card .info p { color: var(--ink-soft); max-width: 50ch; }
.work-card .info .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  color: var(--moss);
}

.work-card .visual {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .visual { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card:hover .info h3 { color: var(--forest); }

/* Decorative SVG covers for work visuals */
.cover {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}
.cover-1 { background: linear-gradient(135deg, #1F4A2C, #4A8B5C); color: var(--paper); }
.cover-2 { background: linear-gradient(135deg, #F5F1E8, #DCD5C2); color: var(--forest); }
.cover-3 { background: linear-gradient(135deg, #0E1A12, #2D3A30); color: var(--leaf); }
.cover-4 { background: linear-gradient(135deg, #B8956A, #DCC9A6); color: var(--ink); }
.cover-5 { background: linear-gradient(135deg, #4A8B5C, #B8DEC1); color: var(--ink); }

.cover .label {
  position: absolute;
  bottom: 18px; left: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ============================ SERVICES GRID ============================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s var(--ease);
  position: relative;
  min-height: 220px;
}
.service-card:hover { background: var(--white); }
.service-card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(74, 139, 92, 0.12);
  color: var(--forest);
}
.service-card h4 { font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; color: var(--moss); line-height: 1.55; }
.service-card .more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover .more { opacity: 1; }

/* ============================ APPROACH ============================ */

.approach { background: var(--ink); color: var(--paper); }
.approach .eyebrow { color: var(--leaf); }
.approach .eyebrow::before { background: var(--leaf); }
.approach h2 { color: var(--paper); }
.approach .lead { color: rgba(245, 241, 232, 0.75); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: rgba(245, 241, 232, 0.12);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.approach-step {
  background: var(--ink);
  padding: 44px 36px;
  position: relative;
  min-height: 320px;
  transition: background 0.3s var(--ease);
}
.approach-step:hover { background: var(--ink-soft); }
.approach-step .num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-style: italic;
  color: var(--leaf);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.approach-step h3 { color: var(--paper); margin: 28px 0 6px; }
.approach-step .sub { color: var(--leaf); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.approach-step p { color: rgba(245, 241, 232, 0.7); font-size: 0.95rem; }

/* ============================ CLIENTS ============================ */

.clients { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.clients-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}
.clients-strip .client {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--moss);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.clients-strip .client:hover { opacity: 1; color: var(--forest); }

.clients-label {
  text-align: center;
  margin-bottom: 36px;
}

/* ============================ TESTIMONIALS ============================ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.testi {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--leaf);
  line-height: 0.6;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.testi blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.testi .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.testi .who strong { display: block; font-size: 0.95rem; font-weight: 500; }
.testi .who span { font-size: 0.85rem; color: var(--moss); }

/* ============================ BLOG ============================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--forest); }
.post-card .meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--moss); text-transform: uppercase; }
.post-card h3 { font-size: 1.35rem; line-height: 1.2; }
.post-card .excerpt { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.post-card .read { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--forest); margin-top: auto; padding-top: 12px; }

/* ============================ CTA BAND ============================ */

.cta-band {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74, 139, 92, 0.4), transparent 70%);
  filter: blur(20px);
}
.cta-band .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band h2 em { font-style: italic; color: rgba(245, 241, 232, 0.6); font-variation-settings: "opsz" 144, "SOFT" 100; }
.cta-band p { color: rgba(245, 241, 232, 0.75); margin-top: 22px; font-size: 1.1rem; max-width: 50ch; }
.cta-band .actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band .actions .btn { background: var(--paper); color: var(--forest); }
.cta-band .actions .btn:hover { background: var(--white); }

/* ============================ FOOTER ============================ */

.site-footer {
  background: var(--ink);
  color: rgba(245, 241, 232, 0.7);
  padding: 80px 0 36px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}
.footer-brand .brand { color: var(--paper); margin-bottom: 18px; }
.footer-brand .brand-mark { background: var(--leaf); }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; line-height: 1.55; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(245, 241, 232, 0.7); font-size: 0.95rem; }
.footer-col a:hover { color: var(--paper); }

.offices { display: flex; flex-direction: column; gap: 22px; }
.office { font-size: 0.92rem; line-height: 1.5; }
.office strong { color: var(--paper); display: block; margin-bottom: 4px; font-weight: 500; }
.office address { font-style: normal; color: rgba(245, 241, 232, 0.6); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.5);
  flex-wrap: wrap;
  gap: 20px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.2);
  display: grid; place-items: center;
  color: rgba(245, 241, 232, 0.7);
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }

/* ============================ FORM ============================ */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ============================ ABOUT PAGE ============================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid .lead { font-size: 1.2rem; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.value-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.value-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--leaf);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.value-card h4 { margin: 14px 0 10px; }
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================ SERVICES PAGE ============================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 1px solid var(--line); }
.service-detail .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--moss);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-detail h3 { font-size: 2rem; margin-bottom: 6px; }
.service-detail .body p { color: var(--ink-soft); margin-bottom: 18px; }
.service-detail .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-detail .tech-list span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
  background: var(--paper);
}

/* ============================ CAREERS / ROLES ============================ */

.role-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}
.role-card:hover { border-color: var(--forest); transform: translateX(4px); }
.role-card h4 { font-size: 1.2rem; }
.role-card .role-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--moss); letter-spacing: 0.06em; }

/* ============================ AI PAGE ============================ */

.ai-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.ai-pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.ai-pillar::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(74, 139, 92, 0.15), transparent 70%);
}
.ai-pillar h4 { margin-bottom: 12px; position: relative; }
.ai-pillar p { color: var(--ink-soft); position: relative; font-size: 0.95rem; }
.ai-pillar .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--forest); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; display: block; }

/* ============================ ANIMATIONS ============================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.8s var(--ease) both; }
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-4 { animation-delay: 0.4s; }
.reveal-5 { animation-delay: 0.5s; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .btn { display: none; }

  .hero-meta { grid-template-columns: 1fr; gap: 32px; }
  .work-card { grid-template-columns: 50px 1fr; gap: 20px; }
  .work-card .visual { grid-column: 1 / -1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .cta-band .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .values-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 16px; }
  .role-card { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .ai-pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .clients-strip { gap: 24px; }
  .clients-strip .client { font-size: 1.15rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================ MOBILE NAV ============================ */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  padding: 100px 28px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav .close {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 2rem;
  color: var(--ink);
  background: none;
  border: none;
}

/* ============================ CLIENTS PAGE ============================ */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.client-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.client-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--forest); }
.client-card:hover::before { transform: scaleX(1); }

.client-card .client-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  flex: none;
}
.client-card .client-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.client-card .client-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.client-card .client-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
}
.client-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.client-card .client-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest);
  border-left: 2px solid var(--leaf);
  padding-left: 18px;
  margin-top: 8px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.client-card .client-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--moss);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 72px;
}
.client-stat {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
}
.client-stat span {
  font-family: var(--font-display);
  font-size: 3rem;
  display: block;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 10px;
}
.client-stat p { font-size: 0.9rem; color: var(--moss); }

/* ============================ TEAM PAGE ============================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.team-avatar {
  aspect-ratio: 1;
  background: var(--forest);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  position: relative;
  overflow: hidden;
}
.team-avatar .bg-shape {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar .initials {
  position: relative; z-index: 2;
  font-size: 2.8rem;
}

.team-card .team-info {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.team-card h4 { font-size: 1.2rem; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
}
.team-card .location {
  font-size: 0.88rem;
  color: var(--moss);
  display: flex; align-items: center; gap: 6px;
}
.team-card .bio {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
}
.team-card .team-links {
  display: flex; gap: 12px; margin-top: 6px;
}
.team-card .team-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid currentColor;
}

.team-dept-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
  margin-top: 64px;
}

/* Colour variants for team avatar backgrounds */
.av-1 { background: linear-gradient(135deg, #1F4A2C, #4A8B5C); }
.av-2 { background: linear-gradient(135deg, #2D3A30, #4A5D4F); }
.av-3 { background: linear-gradient(135deg, #B8956A, #DCC9A6); color: var(--ink) !important; }
.av-4 { background: linear-gradient(135deg, #0E1A12, #1F4A2C); }
.av-5 { background: linear-gradient(135deg, #4A8B5C, #8BC9A0); color: var(--ink) !important; }
.av-6 { background: linear-gradient(135deg, #2D3A30, #8B9D87); }

@media (max-width: 980px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .clients-grid { grid-template-columns: 1fr; }
  .client-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}
