/* ============================================================
   M2 Geospatial — site stylesheet
   Built on tokens.css. Imported by every page.
   ============================================================ */

@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--m2-bg-page);
  color: var(--m2-fg-default);
  font-family: var(--m2-font-sans);
  font-size: var(--m2-size-body);
  line-height: var(--m2-lh-normal);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- container widths ------------------------------ */
.container        { max-width: var(--m2-container);        margin: 0 auto; padding: 0 32px; }
.container-wide   { max-width: var(--m2-container-wide);   margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--m2-container-narrow); margin: 0 auto; padding: 0 32px; }

/* ---------- type utilities -------------------------------- */
.eyebrow {
  font-family: var(--m2-font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--m2-fg-muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--m2-accent-500);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow .num { color: var(--m2-forest-900); }

.display { font-size: 68px; line-height: 1.04; letter-spacing: -0.022em; font-weight: 500; }
.h1      { font-size: 52px; line-height: 1.06; letter-spacing: -0.02em;  font-weight: 500; }
.h2      { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em;  font-weight: 500; }
.h3      { font-size: 26px; line-height: 1.18; letter-spacing: -0.015em; font-weight: 500; }
.h4      { font-size: 20px; line-height: 1.28; letter-spacing: -0.005em; font-weight: 500; }
.lede    { font-size: 20px; line-height: 1.55; color: var(--m2-fg-muted); }
.mono    { font-family: var(--m2-font-mono); }
.muted   { color: var(--m2-fg-muted); }
.strong-link { color: var(--m2-forest-900); border-bottom: 1px solid var(--m2-accent-500); text-decoration: none; padding-bottom: 1px; }
.strong-link:hover { color: var(--m2-accent-700); }

@media (max-width: 800px) {
  .display { font-size: 44px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
  .lede { font-size: 17px; }
  .container, .container-wide, .container-narrow { padding: 0 20px; }
}

/* ---------- buttons --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--m2-font-sans); font-weight: 500; font-size: 14px;
  padding: 11px 18px; border-radius: 6px; border: 1px solid transparent;
  text-decoration: none; transition: all 120ms var(--m2-ease-out);
  white-space: nowrap;
}
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.sm { padding: 8px 14px;  font-size: 13px; }
.btn-primary    { background: var(--m2-forest-900); color: var(--m2-paper-50); }
.btn-primary:hover    { background: var(--m2-forest-700); }
.btn-secondary  { background: transparent; color: var(--m2-forest-900); border-color: var(--m2-forest-900); }
.btn-secondary:hover  { background: var(--m2-forest-900); color: var(--m2-paper-50); }
.btn-on-deep    { background: var(--m2-accent-500); color: var(--m2-forest-900); }
.btn-on-deep:hover    { background: var(--m2-accent-300); }
.btn-ghost-deep { background: transparent; color: var(--m2-paper-50); border-color: rgba(250,248,244,0.32); }
.btn-ghost-deep:hover { border-color: var(--m2-paper-50); }
.btn-tertiary {
  padding: 11px 0; background: transparent; color: var(--m2-forest-900);
  border-radius: 0; border-bottom: 1px solid var(--m2-accent-500); gap: 8px;
}
.btn-tertiary:hover { color: var(--m2-accent-700); }
.btn:focus-visible { outline: none; box-shadow: var(--m2-shadow-focus); }

.icon-arrow {
  display: inline-block; width: 14px; height: 14px;
  background: currentColor; flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
}
.icon-arrow-ne {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>");
}
.icon-arrow-left {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='19' y1='12' x2='5' y2='12'/><polyline points='12 19 5 12 12 5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='19' y1='12' x2='5' y2='12'/><polyline points='12 19 5 12 12 5'/></svg>");
}
.icon-plus {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}
.icon-check {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ---------- header / nav ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--m2-line);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.site-header__left { display: flex; align-items: center; gap: 40px; }
.site-header__logo img { width: 300px; height: auto; }
.site-header__nav { display: flex; gap: 26px; align-items: center; }
.site-header__nav > a, .site-header__nav .nav-dd__trigger {
  color: var(--m2-forest-900); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em; padding: 6px 0; transition: color 120ms;
  display: inline-flex; align-items: center; gap: 6px;
}
.site-header__nav > a:hover, .site-header__nav .nav-dd__trigger:hover { color: var(--m2-accent-600); }
.site-header__nav .is-active { color: var(--m2-accent-500) !important; }
.nav-dd { position: relative; }
.nav-dd__chev { transition: transform 160ms cubic-bezier(0.2,0.7,0.2,1); opacity: 0.7; }
.nav-dd:hover .nav-dd__chev, .nav-dd[data-open="true"] .nav-dd__chev { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px;
  background: var(--m2-paper-50); color: var(--m2-fg-strong);
  border: 1px solid var(--m2-line); border-radius: 4px;
  min-width: 320px; padding: 8px; box-shadow: 0 12px 32px -8px rgba(15,20,17,0.18), 0 2px 6px rgba(15,20,17,0.06);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms cubic-bezier(0.2,0.7,0.2,1), transform 160ms cubic-bezier(0.2,0.7,0.2,1), visibility 160ms;
  z-index: 200;
}
.nav-dd:hover .nav-dropdown, .nav-dd:focus-within .nav-dropdown, .nav-dd[data-open="true"] .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-dropdown__item {
  display: block; padding: 10px 14px; border-radius: 3px;
  color: var(--m2-fg-strong); text-decoration: none;
  font-size: 14px; line-height: 1.4; letter-spacing: -0.005em;
  transition: background 120ms, color 120ms;
}
.nav-dropdown__item:hover { background: var(--m2-paper-100); color: var(--m2-forest-900); }
.nav-dropdown__item .t { display: block; }
.nav-dropdown__item .sub { display: block; font-size: 11px; color: var(--m2-fg-muted); margin-top: 2px; letter-spacing: 0.02em; }
.nav-dropdown__item--sub {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--m2-line);
  border-radius: 0;
  font-size: 13.5px;
}
.nav-dropdown__item--sub:hover { background: transparent; }
.nav-dropdown__item--sub .t { color: var(--m2-fg-strong); }
.nav-dropdown__item--sub:hover .t { color: var(--m2-forest-900); text-decoration: underline; }
.site-header__nav a.is-active {
  border-bottom: 1px solid var(--m2-accent-500); padding-bottom: 2px; font-weight: 500;
}
.site-header__nav a.external {
  color: var(--m2-fg-muted); display: inline-flex; align-items: center; gap: 4px;
}
.site-header__right { display: flex; align-items: center; gap: 14px; }
.site-header__tag {
  font-family: var(--m2-font-mono); font-size: 11px; color: var(--m2-fg-muted);
  border: 1px solid var(--m2-line-strong); padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.nav-burger { display: none; background: none; border: 0; padding: 8px; color: var(--m2-forest-900); }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__tag { display: none; }
  .nav-burger { display: block; }
  .mobile-menu.is-open { display: block; padding: 16px 20px 24px; border-top: 1px solid var(--m2-line); background: var(--m2-paper-0); }
  .mobile-menu a { display: block; padding: 12px 0; font-size: 16px; text-decoration: none; color: var(--m2-fg-default); border-bottom: 1px solid var(--m2-line-soft); }
}

/* ---------- footer ---------------------------------------- */
.site-footer {
  background: var(--m2-forest-950);
  color: var(--m2-paper-50);
  padding: 64px 0 32px;
}
.site-footer .rule { width: 64px; height: 1px; background: var(--m2-accent-500); margin-bottom: 32px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px;
}
.site-footer h4 {
  font-family: var(--m2-font-mono); font-size: 11px; color: rgba(250,248,244,0.6);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.site-footer a { color: rgba(250,248,244,0.88); text-decoration: none; }
.site-footer a:hover { color: var(--m2-accent-300); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--m2-font-mono); font-size: 11px; color: rgba(250,248,244,0.5);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 24px; border-top: 1px solid rgba(250,248,244,0.12);
}
.site-footer__brand img { width: 180px; height: 18px; margin-bottom: 16px; }
.site-footer__brand p { font-size: 13px; color: rgba(250,248,244,0.6); line-height: 1.65; max-width: 320px; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- section spacing ------------------------------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.section-paper { background: var(--m2-paper-50); }
.section-paper-100 { background: var(--m2-paper-100); }
.section-white { background: var(--m2-paper-0); border-top: 1px solid var(--m2-line); }
.section-deep { background: var(--m2-forest-900); color: var(--m2-paper-50); }
.section-deep h1, .section-deep h2, .section-deep h3 { color: var(--m2-paper-50); }
.section-deep .lede { color: rgba(250,248,244,0.78); }
.section-deep .eyebrow { color: rgba(250,248,244,0.7); }
.section-deep .eyebrow .num { color: var(--m2-paper-50); }

@media (max-width: 800px) {
  .section, .section-lg { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}

/* ---------- hero ------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--m2-forest-900); color: var(--m2-paper-50);
  padding: 112px 0 96px;
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(250,248,244,0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250,248,244,0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__contour {
  position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  mix-blend-mode: screen;
}
.hero__inner { position: relative; max-width: 920px; }
.hero h1 {
  color: var(--m2-paper-50); font-size: 68px; line-height: 1.04;
  font-weight: 500; letter-spacing: -0.022em;
  margin: 22px 0 28px;
}
.hero p.lede { color: rgba(250,248,244,0.8); font-size: 21px; max-width: 720px; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 12px; margin-bottom: 64px; flex-wrap: wrap; }
.hero__credstrip {
  display: grid; grid-template-columns: auto 1px auto 1px 1fr;
  align-items: center; gap: 32px;
  padding-top: 28px; border-top: 1px solid rgba(250,248,244,0.18);
}
.hero__credstrip-divider {
  width: 1px; height: 48px; background: rgba(250,248,244,0.18);
}
.hero__credstrip-eyebrow {
  font-family: var(--m2-font-mono); font-size: 11px;
  color: rgba(250,248,244,0.55); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.hero__credstrip-headline {
  font-family: var(--m2-font-sans); font-size: 19px; font-weight: 500;
  color: var(--m2-paper-50); letter-spacing: -0.01em;
}
.hero__credstrip-chips {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.hero__credstrip-chips li {
  font-family: var(--m2-font-mono); font-size: 11px;
  color: var(--m2-paper-50); letter-spacing: 0.04em;
  padding: 4px 10px; border: 1px solid rgba(250,248,244,0.22);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .hero__credstrip { grid-template-columns: 1fr; gap: 18px; }
  .hero__credstrip-divider { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 44px; margin-top: 18px; }
  .hero p.lede { font-size: 17px; }
  .hero__credstrip-headline { font-size: 17px; }
}

/* ---------- numbered practice rows (Lutra-style) ---------- */
.numbered-rows .row {
  display: grid; grid-template-columns: 88px 1fr 1.1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--m2-line);
  text-decoration: none; color: inherit; transition: background 120ms var(--m2-ease-out);
}
.numbered-rows .row:hover { background: rgba(15, 33, 71, 0.02); }
.numbered-rows .row:hover .row__num { color: var(--m2-accent-700); }
.numbered-rows .row:hover .row__title { color: var(--m2-accent-700); }
.numbered-rows .row:hover .row__cta { color: var(--m2-accent-700); }
.numbered-rows .row:last-child { border-bottom: 1px solid var(--m2-line); }
.row__num {
  font-family: var(--m2-font-mono); font-size: 32px; font-weight: 500;
  color: var(--m2-forest-900); letter-spacing: -0.02em;
}
.row__title { font-size: 24px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.015em; color: var(--m2-fg-strong); transition: color 120ms; }
.row__desc { color: var(--m2-fg-muted); font-size: 15px; line-height: 1.6; max-width: 480px; margin: 0; }
.row__cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--m2-font-mono); font-size: 12px; color: var(--m2-forest-900);
  letter-spacing: 0.04em; text-transform: uppercase; transition: color 120ms;
}
.row__cta .icon-arrow { width: 14px; height: 14px; }
.row__outputs {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--m2-font-mono); font-size: 12px; color: var(--m2-fg-muted);
  letter-spacing: 0.02em; line-height: 2;
  columns: 2; column-gap: 24px;
}
.row__outputs li {
  padding-left: 14px; position: relative; break-inside: avoid;
}
.row__outputs li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--m2-accent-500); font-weight: 700;
}

@media (max-width: 900px) {
  .numbered-rows .row { grid-template-columns: 1fr; gap: 16px; }
  .row__num { font-size: 22px; }
  .row__outputs { columns: 1; }
}

/* ---------- generic two-col header (section intro) -------- */
.section-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 48px;
}
.section-intro h2 { margin-top: 18px; }
.section-intro p { color: var(--m2-fg-muted); font-size: 16px; line-height: 1.7; max-width: 460px; }
@media (max-width: 900px) {
  .section-intro { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- card-grid (solutions) ------------------------- */
.card-grid {
  display: grid; gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
}

.solution-card {
  background: var(--m2-paper-0); border: 1px solid var(--m2-line); border-radius: 2px;
  padding: 28px; display: flex; flex-direction: column; text-decoration: none;
  color: inherit; min-height: 280px; transition: all 160ms var(--m2-ease-out);
}
.solution-card:hover {
  border-color: var(--m2-line-strong); box-shadow: var(--m2-shadow-1);
  transform: translateY(-1px);
}
.solution-card__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.solution-card__num {
  font-family: var(--m2-font-mono); font-size: 22px; font-weight: 500;
  color: var(--m2-forest-900);
}
.solution-card__sector {
  font-family: var(--m2-font-mono); font-size: 10px; color: var(--m2-fg-subtle);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.solution-card h3 { font-size: 22px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.solution-card__pitch { color: var(--m2-fg-muted); font-size: 14px; line-height: 1.6; flex-grow: 1; margin: 0 0 20px; }
.solution-card__read {
  font-family: var(--m2-font-mono); font-size: 12px; color: var(--m2-forest-900);
  letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--m2-line); padding-top: 16px;
}

/* ---------- numbers strip --------------------------------- */
.numbers-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--m2-line); border-bottom: 1px solid var(--m2-line);
  background: var(--m2-paper-0);
}
.numbers-strip__cell {
  padding: 28px 24px; border-right: 1px solid var(--m2-line);
}
.numbers-strip__cell:last-child { border-right: 0; }
.numbers-strip__v {
  font-family: var(--m2-font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--m2-forest-900); line-height: 1.5;
}
.numbers-strip__l {
  font-family: var(--m2-font-mono); font-size: 10px; color: var(--m2-fg-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px;
}
@media (max-width: 900px) {
  .numbers-strip { grid-template-columns: 1fr 1fr; }
  .numbers-strip__cell { border-right: 0; border-bottom: 1px solid var(--m2-line); }
  .numbers-strip__cell:nth-child(odd) { border-right: 1px solid var(--m2-line); }
}

/* ---------- work row list --------------------------------- */
.work-rows .row {
  display: grid; grid-template-columns: 140px 1.4fr 2fr 1.2fr;
  gap: 40px; padding: 28px 0; border-top: 1px solid var(--m2-line);
  text-decoration: none; color: inherit; align-items: start;
  transition: background 120ms var(--m2-ease-out);
}
.work-rows .row:last-child { border-bottom: 1px solid var(--m2-line); }
.work-rows .row:hover { background: rgba(15, 33, 71, 0.02); }
.work-rows .row:hover .work__title { color: var(--m2-accent-700); }
.work__meta {
  font-family: var(--m2-font-mono); font-size: 12px; color: var(--m2-fg-muted);
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.7;
}
.work__title { font-size: 22px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--m2-fg-strong); transition: color 120ms; }
.work__client { font-family: var(--m2-font-mono); font-size: 11px; color: var(--m2-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.work__desc { color: var(--m2-fg-muted); font-size: 14px; line-height: 1.65; margin: 0; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font-family: var(--m2-font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--m2-line); padding: 4px 9px; border-radius: 999px;
  color: var(--m2-fg-muted); background: var(--m2-paper-0);
}

@media (max-width: 900px) {
  .work-rows .row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- FAQ accordion --------------------------------- */
.faq-list { border-top: 1px solid var(--m2-line); }
.faq-item { border-bottom: 1px solid var(--m2-line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.005em; color: var(--m2-fg-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; display: block; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
  transition: transform 200ms var(--m2-ease-out);
  flex-shrink: 0; color: var(--m2-accent-700);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 60px 24px 0;
  color: var(--m2-fg-muted); font-size: 16px; line-height: 1.7; max-width: 760px;
}
.faq-item__body p + p { margin-top: 12px; }
.faq-item__body a { color: var(--m2-forest-900); border-bottom: 1px solid var(--m2-accent-500); text-decoration: none; padding-bottom: 1px; }

/* ---------- case study card on home ----------------------- */
.case-card {
  background: var(--m2-paper-0); border: 1px solid var(--m2-line); border-radius: 2px;
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
}
.case-card__body { padding: 48px; }
.case-card__h { font-size: 30px; margin: 16px 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 500; }
.case-card__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--m2-line); border-bottom: 1px solid var(--m2-line);
  margin-bottom: 28px;
}
.case-card__stat .v { font-family: var(--m2-font-mono); font-size: 22px; color: var(--m2-forest-900); font-weight: 500; }
.case-card__stat .l { font-family: var(--m2-font-mono); font-size: 10px; color: var(--m2-fg-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.case-card__map { background: var(--m2-forest-900); position: relative; min-height: 380px; }
.case-card__cap {
  position: absolute; left: 24px; bottom: 24px;
  font-family: var(--m2-font-mono); font-size: 11px; color: rgba(250,248,244,0.78);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(15,33,71,0.78); backdrop-filter: blur(4px);
  padding: 6px 10px; border-radius: 2px;
}

@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card__body { padding: 32px; }
  .case-card__map { min-height: 240px; }
}

/* ---------- contact form ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--m2-font-mono); font-size: 11px; color: var(--m2-fg-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px;
  border: 1px solid var(--m2-line-strong); border-radius: 6px;
  background: var(--m2-paper-0); padding: 12px 14px; color: var(--m2-fg-strong);
  transition: border-color 120ms var(--m2-ease-out), box-shadow 120ms var(--m2-ease-out);
  font-family: var(--m2-font-sans);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--m2-accent-500); box-shadow: var(--m2-shadow-focus);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--m2-fg-subtle); }

/* ---------- table ----------------------------------------- */
table.compact {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.compact th, table.compact td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--m2-line);
}
table.compact th {
  font-family: var(--m2-font-mono); font-size: 11px; color: var(--m2-fg-muted);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}

/* ---------- generic dl key-value -------------------------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--m2-line); align-items: baseline; }
.kv dt { font-family: var(--m2-font-mono); font-size: 12px; line-height: 1.5; color: var(--m2-fg-muted); letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.kv dd { font-size: 15px; line-height: 1.5; color: var(--m2-fg-strong); margin: 0; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- prose lists ----------------------------------- */
ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li {
  position: relative; padding: 12px 0 12px 38px;
  border-bottom: 1px solid var(--m2-line-soft);
  font-size: 15px; line-height: 1.6; color: var(--m2-fg-strong);
}
ul.checklist li::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 16px; height: 16px;
  background: var(--m2-accent-700);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

ul.bulleted { padding-left: 0; list-style: none; }
ul.bulleted li {
  position: relative; padding-left: 18px; margin: 8px 0; line-height: 1.65;
  color: var(--m2-fg-strong);
}
ul.bulleted li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; background: var(--m2-accent-500); border-radius: 999px;
}

/* ---------- breadcrumb ------------------------------------ */
.breadcrumb {
  font-family: var(--m2-font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--m2-fg-muted); text-transform: uppercase; margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.breadcrumb a { color: var(--m2-fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--m2-accent-700); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .icon-arrow-left { width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><polyline points='15 18 9 12 15 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><polyline points='15 18 9 12 15 6'/></svg>") center/contain no-repeat;
}

/* ---------- product / livefarm card ----------------------- */
.product-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
  background: var(--m2-paper-0); border: 1px solid var(--m2-line);
  padding: 32px 36px; align-items: center; border-radius: 2px;
}
.product-card__brand img { height: 22px; width: auto; }
.product-card__copy h3 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; font-weight: 500; }
.product-card__copy p { color: var(--m2-fg-muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 580px; }
@media (max-width: 800px) {
  .product-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* ---------- detail-page hero ------------------------------ */
.detail-hero {
  background: var(--m2-paper-0); padding: 64px 0 80px;
  border-bottom: 1px solid var(--m2-line);
}
.detail-hero__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start;
}
.detail-hero h1 { font-size: 52px; line-height: 1.06; margin: 20px 0 22px; letter-spacing: -0.02em; }
.detail-hero .lede { max-width: 620px; margin-bottom: 28px; }
.detail-hero__aside {
  border: 1px solid var(--m2-line); border-radius: 2px; padding: 24px;
  background: var(--m2-paper-50);
}
@media (max-width: 900px) {
  .detail-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero h1 { font-size: 36px; }
}

/* ---------- two-col rhythm (content sections) ------------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- closing CTA strip ----------------------------- */
.cta-strip {
  background: var(--m2-forest-900); color: var(--m2-paper-50); padding: 96px 0;
}
.cta-strip__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.cta-strip h2 { color: var(--m2-paper-50); font-size: 44px; margin-top: 22px; letter-spacing: -0.02em; line-height: 1.06; max-width: 720px; font-weight: 500; }
.cta-strip__contact { display: flex; flex-direction: column; gap: 14px; }
.cta-strip__contact .label { font-family: var(--m2-font-mono); font-size: 12px; color: rgba(250,248,244,0.6); letter-spacing: 0.06em; text-transform: uppercase; }
.cta-strip__contact a { color: var(--m2-paper-50); font-size: 22px; text-decoration: none; border-bottom: 1px solid var(--m2-accent-500); padding-bottom: 4px; align-self: flex-start; }
.cta-strip__contact p { color: rgba(250,248,244,0.6); font-size: 14px; line-height: 1.6; max-width: 360px; margin-top: 8px; }
@media (max-width: 900px) { .cta-strip__grid { grid-template-columns: 1fr; gap: 32px; } .cta-strip h2 { font-size: 32px; } }

/* ---------- focus + selection ----------------------------- */
:focus-visible { outline: 2px solid var(--m2-accent-500); outline-offset: 2px; }
::selection { background: var(--m2-accent-300); color: var(--m2-forest-900); }
