:root {
  color-scheme: light;
  --ink: #17201d;
  --muted-ink: #5b6861;
  --line: #dbe4dc;
  --paper: #f8faf7;
  --white: #ffffff;
  --green: #1f7a56;
  --green-dark: #14533c;
  --amber: #b07124;
  --blue: #265f8f;
  --clay: #936a54;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 29, 0.1);
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 12px;
  min-width: 260px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted-ink);
  font-size: 12px;
}

nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--muted-ink);
  font-size: 14px;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

nav a:hover,
.text-link:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 74vh;
  padding: clamp(64px, 10vw, 118px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(31, 122, 86, 0.1), transparent 44%),
    linear-gradient(180deg, var(--white), var(--paper));
}

.hero-with-image {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

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

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero p {
  max-width: 680px;
  color: var(--muted-ink);
  font-size: 18px;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  color: var(--green-dark);
}

.signal-panel,
.info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.signal-panel {
  padding: 28px;
  box-shadow: 0 22px 60px rgba(20, 83, 60, 0.12);
}

dl {
  margin: 0;
}

.signal-panel div + div {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted-ink);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.page-hero {
  padding-top: clamp(72px, 10vw, 120px);
}

.section.muted {
  border-block: 1px solid var(--line);
  background: #eef4ef;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 30px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted-ink);
}

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

.info-grid article,
.columns div {
  padding: 24px;
}

.info-grid p,
.columns p {
  color: var(--muted-ink);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.project-summary.rich {
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 0.72fr);
  align-items: center;
  padding: 18px;
}

.project-summary.rich img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: var(--paper);
}

.project-summary.rich.no-image {
  grid-template-columns: 1fr;
  padding: 28px;
}

.project-summary.rich h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.project-summary h3,
.project-summary p {
  margin: 0;
}

.project-summary > p {
  color: var(--muted-ink);
}

.project-kicker {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: var(--paper);
}

.product-card.web-card img {
  object-fit: cover;
  object-position: center center;
}

.product-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.product-card p {
  margin: 0;
}

.product-card p {
  color: var(--muted-ink);
}

.product-card.text-card {
  justify-content: flex-end;
  min-height: 360px;
  border-color: rgba(38, 95, 143, 0.24);
  background:
    linear-gradient(150deg, rgba(38, 95, 143, 0.1), transparent 55%),
    var(--white);
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 10vw, 118px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.project-detail-copy p {
  max-width: 720px;
  color: var(--muted-ink);
  font-size: 18px;
}

.detail-visual {
  margin: 0;
}

.detail-visual img {
  width: min(100%, 520px);
  max-height: 720px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.14);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(38, 95, 143, 0.1);
  color: var(--blue);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.inline-link {
  margin-top: 0;
}

.policy-layout {
  display: grid;
  gap: 22px;
  max-width: 980px;
}

.policy-layout article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.policy-layout article:last-child {
  border-bottom: 0;
}

.policy-layout h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 3vw, 32px);
}

.policy-layout p {
  max-width: 860px;
  color: var(--muted-ink);
}

.support-card {
  max-width: 880px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.support-card h2 {
  margin-bottom: 14px;
  color: var(--green-dark);
  overflow-wrap: anywhere;
}

.email-obfuscate a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 840px) {
  .site-header,
  .hero,
  .site-footer {
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .info-grid,
  .columns,
  .project-summary,
  .project-summary.rich,
  .product-grid,
  .project-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .product-card.text-card {
    min-height: 240px;
  }
}
