:root {
  --bg: #dfe5de;
  --surface: #f8f4ea;
  --surface-soft: #cfd9d1;
  --ink: #151b1b;
  --muted: #53605e;
  --faint: #7a8581;
  --line: #bec9c1;
  --line-dark: #25302f;
  --charcoal: #182221;
  --charcoal-2: #263332;
  --cream: #f3ecdc;
  --green: #335f57;
  --copper: #a45f38;
  --amber: #b98234;
  --shadow: 0 16px 36px rgba(21, 27, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe5de;
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e2e8e1 0, #d3dcd4 340px, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(231, 236, 229, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(248, 244, 234, 0.42), rgba(248, 244, 234, 0)),
    linear-gradient(135deg, #e2e8e1 0%, #d1dbd3 58%, #d8d0c3 100%);
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(51, 95, 87, 0.12), transparent 32%, transparent 70%, rgba(164, 95, 56, 0.14));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: 64px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 44px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green);
}

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

h1 {
  margin-bottom: 22px;
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(42px, 5.7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.lede-secondary {
  margin-top: -14px;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a,
.actions a,
.actions span {
  min-height: 42px;
  border: 1px solid rgba(23, 24, 20, 0.16);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hero-actions a {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hero-actions a:nth-child(2) {
  border-color: rgba(36, 48, 47, 0.34);
  background: rgba(248, 244, 234, 0.52);
  color: var(--ink);
}

.hero-actions a:hover,
.actions a:hover {
  border-color: var(--copper);
}

.directory-panel {
  border: 1px solid rgba(190, 201, 193, 0.95);
  border-radius: 8px;
  background: rgba(248, 244, 234, 0.76);
  box-shadow: var(--shadow);
  padding: 6px 18px;
  backdrop-filter: blur(10px);
}

.directory-panel a {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding: 17px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.directory-panel a:last-child {
  border-bottom: 0;
}

.directory-panel a:hover strong {
  color: var(--green);
}

.directory-panel span {
  grid-row: span 2;
  color: var(--copper);
  font-weight: 800;
}

.directory-panel strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.directory-panel small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.hero + .section {
  padding-top: 68px;
}

.section-tinted {
  width: 100%;
  max-width: none;
  padding: 64px max(20px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, var(--surface-soft), rgba(223, 229, 222, 0.7));
}

.section-heading {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.tool-card,
.site-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--surface), #f0eadf);
  box-shadow: 0 1px 0 rgba(22, 26, 29, 0.03);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.project-card:hover,
.tool-card:hover,
.site-card:hover {
  border-color: #aebdb5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card-large {
  grid-row: auto;
}

.image-link {
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: #0e100d;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.compact-image {
  min-height: 0;
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.image-link:hover img {
  transform: scale(1.02);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-kicker {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.project-card p,
.tool-card p,
.site-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.review-point {
  border-left: 3px solid var(--copper);
  padding-left: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.actions {
  margin-top: auto;
  padding-top: 18px;
}

.actions a:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-grid-single {
  grid-template-columns: minmax(0, 620px);
}

.site-card {
  overflow: hidden;
}

.site-image {
  display: block;
  min-height: 260px;
  color: #fffaf0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.site-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
  transition: transform 0.25s ease;
}

.site-image:hover img {
  transform: scale(1.02);
}

.site-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.tool-card {
  min-height: 290px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.tool-copy {
  display: flex;
  flex-direction: column;
}

.tool-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 16px;
}

.regime-visual {
  display: grid;
  gap: 0;
}

.regime-visual div {
  display: grid;
  grid-template-columns: 52px 66px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.regime-visual div:last-child {
  border-bottom: 0;
}

.regime-visual strong {
  color: var(--green);
}

.regime-visual em {
  color: var(--copper);
  font-style: normal;
}

.query-visual {
  display: grid;
  gap: 10px;
}

.query-visual code {
  display: block;
  border-radius: 5px;
  background: #1b1d18;
  color: #f5f0e4;
  padding: 10px;
  font-size: 12px;
  white-space: normal;
}

.disabled-actions span {
  color: var(--faint);
}

.project-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 24px;
  margin-top: 28px;
}

.summary-panel,
.detail-panel,
.metric-card,
.workflow-step,
.query-card,
.output-card,
.scope-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-panel {
  padding: 24px;
}

.summary-panel p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.summary-panel p:last-child {
  margin-bottom: 0;
}

.detail-panel {
  padding: 20px;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.subpage-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.subpage-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: 0;
}

.subpage-section > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  padding: 18px;
}

.workflow-step span {
  display: block;
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 850;
}

.workflow-step h3 {
  font-size: 20px;
}

.workflow-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.query-grid,
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.query-card,
.output-card {
  padding: 18px;
}

.query-card code {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #1b1d18;
  color: #f5f0e4;
  padding: 8px 10px;
  font-size: 12px;
}

.query-card h3,
.output-card h3 {
  font-size: 20px;
}

.query-card p,
.output-card p,
.scope-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.code-panel {
  margin-top: 18px;
  border-radius: 8px;
  background: #1b1d18;
  color: #f5f0e4;
  overflow: auto;
}

.code-panel pre {
  margin: 0;
  padding: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scope-box {
  padding: 20px;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 52px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.subpage-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.subpage-hero {
  padding: 74px 0 36px;
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  color: var(--ink);
  max-width: 760px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.04;
}

.subpage-hero .lede {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.photo-gallery {
  padding: 34px 0 78px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.photo-gallery figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo-gallery figure:nth-child(1),
.photo-gallery figure:nth-child(4) {
  grid-column: span 7;
}

.photo-gallery figure:nth-child(2),
.photo-gallery figure:nth-child(3) {
  grid-column: span 5;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-inner,
  .work-grid,
  .tool-grid,
  .site-grid,
  .tool-card,
  .project-summary-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip,
  .workflow-grid,
  .query-grid,
  .output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    min-height: 0;
    padding: 46px 0 54px;
    gap: 28px;
  }

  h1 {
    font-size: 48px;
  }

  .lede {
    font-size: 18px;
    line-height: 1.58;
  }

  .directory-panel {
    padding: 4px 14px;
  }

  .directory-panel a {
    padding: 14px 0;
  }

  .work-grid {
    gap: 16px;
  }

  .project-card-large {
    grid-row: auto;
  }

  .photo-gallery figure:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 28px, 1180px);
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-inner,
  .section,
  .subpage-main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .section-tinted {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .lede {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .hero + .section {
    padding-top: 58px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .subpage-section {
    padding: 38px 0;
  }

  .metrics-strip,
  .workflow-grid,
  .query-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .card-body,
  .tool-card {
    padding: 18px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .photo-gallery figure:nth-child(n) {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}
