/* Self-hosted Latin fonts; copyright notices and OFL licences live in assets/fonts/. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('./assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('./assets/fonts/newsreader-latin-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --grey: #f3f3f3;
  --mint: #bbe9d1;
  --teal: #358476;
  --green: #7fd480;
  --forest: #324234;
  --white: #fff;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 48px);
  --header-height: 4.75rem;
  --sticky-header-offset: calc(var(--header-height) + 1px);
  --section-space: clamp(4rem, 8vw, 7.5rem);
  --layout-gap: clamp(1.5rem, 4vw, 4rem);
  --icon-size: 3.5rem;
  --focus-color: var(--forest);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Brand styling: use square corners throughout the website. */
*,
*::before,
*::after {
  border-radius: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: var(--forest);
  background: var(--grey);
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
/* Align section backgrounds with the header; sections provide their own padding. */
:where(main, section)[id] {
  scroll-margin-top: var(--sticky-header-offset);
}
:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 4px;
}
/* Fragment destinations receive focus for navigation, without outlining whole sections. */
:where(main, section)[tabindex='-1']:focus {
  outline: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
}
h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.875rem 1.5rem;
  border: 0;
  background: var(--green);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--mint);
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.link,
.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  font-family: var(--serif);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: var(--gut);
  padding: 0.75rem 1rem;
  background: var(--grey);
  color: var(--forest);
  transform: translateY(calc(-100% - 2rem));
}
.skip-link:focus {
  transform: none;
}

/* Shared header and navigation. Links are visible until the menu is ready. */
.site-header {
  --focus-color: var(--mint);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--forest);
  color: var(--grey);
  border-bottom: 1px solid rgba(127, 212, 128, 0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
  padding-block: 0.75rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
  color: var(--green);
}
.logo img {
  width: 7rem;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--green);
}
.nav-links a[aria-current='page'] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.nav-links .btn {
  padding: 0.75rem 1.125rem;
  color: var(--forest);
}
.nav-links .btn:hover {
  color: var(--forest);
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 6.25rem;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-family: var(--serif);
  line-height: 1.2;
}
.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.nav-toggle .menu-line {
  transform-origin: center;
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded='true'] .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero: readable copy in the page grid, with artwork extending to the screen edge. */
.hero,
.contact {
  --focus-color: var(--mint);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: var(--grey);
}
/* Fill the viewport below the header; let longer content grow naturally. */
.hero-layout,
.about-intro,
.build,
.how,
.resources {
  min-height: calc(100vh - var(--sticky-header-offset));
  min-height: calc(100svh - var(--sticky-header-offset));
  min-height: calc(100dvh - var(--sticky-header-offset));
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: var(--layout-gap);
  padding-block: clamp(4rem, 7vw, 7rem);
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.hero h1 {
  max-width: 17ch;
  color: var(--green);
  font-size: clamp(2.375rem, 4.6vw, 4.5rem);
  text-wrap: balance;
}
.hero .lede {
  max-width: 42ch;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 300;
}
.hero .actions {
  margin-top: 2rem;
}
.hero .link {
  color: var(--mint);
  font-size: 1.125rem;
}
/* Enlarge the single supplied composition around the right edge; the hero clips it. */
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 2.5rem 0 2.5rem calc(50% + 8.5rem);
  pointer-events: none;
}
.hero-pattern {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--green);
  transform: scale(1.5);
  transform-origin: right center;
}
.hero-aside {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  min-height: 28rem;
  pointer-events: none;
}
.chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: var(--grey);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
  box-shadow:
    0 3px 6px rgb(0 0 0 / 0.28),
    0 10px 18px -4px rgb(0 0 0 / 0.42);
}
.chip i {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  background: var(--green);
}
.chip i img {
  width: 100%;
  height: 100%;
}
.chip span {
  padding: 0.5rem 0.875rem;
}

@media (max-width: 960px) {
  .hero-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding-block: clamp(3rem, 8vw, 5rem);
  }
  .hero h1 {
    max-width: 19ch;
    font-size: clamp(2.375rem, 6.5vw, 4rem);
  }
  .hero-aside {
    min-height: 0;
    justify-content: flex-start;
  }
  .chips {
    align-items: flex-start;
    margin-bottom: 0;
  }
  /* The complete composition becomes a quiet background behind copy and badges. */
  .hero-art {
    inset: 0;
    opacity: 0.22;
  }
  .hero-pattern {
    position: absolute;
    top: 50%;
    right: -20%;
    width: auto;
    max-width: none;
    height: 120%;
    transform: translateY(-50%);
  }
}

/* Center each main content section when it fits within the available viewport. */
.build,
.how,
.resources {
  display: flex;
  align-items: center;
  padding-block: var(--section-space);
}

/* Capabilities and reusable cards. */
.build .eyebrow {
  font-weight: 400;
  line-height: inherit;
}
.build .intro {
  max-width: 65ch;
  margin-bottom: 3.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 300;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 3px solid var(--green);
  background: var(--white);
}
.card .ico {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-bottom: 1.75rem;
}
.card .ico img {
  width: 100%;
  height: 100%;
}
.card h3 {
  margin-bottom: 1rem;
}
.card p {
  color: #4a574c;
  font-size: 1rem;
  line-height: 1.7;
}
.build .brand-emphasis {
  color: var(--forest);
  font-weight: 700;
}

/* Process. */
.how {
  background: var(--mint);
}
.how h2 {
  margin-bottom: 3.5rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step {
  min-width: 0;
  padding-right: 2rem;
}
.step + .step {
  padding-left: 2rem;
  border-left: 1px solid rgba(50, 66, 52, 0.2);
}
.step:last-child {
  padding-right: 0;
}
.num {
  margin-bottom: 2rem;
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.step h3 {
  margin-bottom: 0.875rem;
}
.step p {
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.7;
}
.flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  font-family: var(--serif);
  font-size: 1rem;
}
.flow span {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

/* Case studies and overview: the same card layout supports each PDF. */
.resources {
  background: var(--white);
}
.resources-intro {
  display: grid;
  grid-template-columns: 6fr 5fr;
  align-items: end;
  gap: var(--layout-gap);
  margin-bottom: 3rem;
}
.resources-intro h2 {
  max-width: 16ch;
  text-wrap: balance;
}
.resources-intro > p {
  max-width: 40ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 300;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(50, 66, 52, 0.15);
  background: var(--grey);
}
.resource-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mint);
}
.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
}
.resource-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50, 66, 52, 0.08), rgba(53, 132, 118, 0.2));
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .resource-image img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .resource-card:is(:hover, :focus-within) .resource-image img {
    transform: scale(1.1);
  }
}
.resource-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}
.resource-category {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.resource-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  line-height: 1.15;
}
.resource-description {
  font-size: 1rem;
  line-height: 1.7;
}
.resource-highlight {
  margin-top: auto;
  padding-block: 1.75rem 1.5rem;
}
.resource-highlight strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.625rem;
  font-weight: 400;
  line-height: 1.15;
}
.resource-highlight span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.resource-highlight-text strong {
  font-size: 1.75rem;
}
.resource-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(50, 66, 52, 0.2);
  text-decoration: none;
}
/* Extend the existing PDF link across its card, retaining a single keyboard stop. */
.resource-download::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.resource-download:focus-visible {
  outline: none;
}
.resource-download:focus-visible::after {
  outline: 2px solid var(--focus-color);
  outline-offset: 4px;
}
.resource-download > img {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}
.resource-download > span {
  min-width: 0;
}
.resource-download-label {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.resource-download small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
.resource-download:hover .resource-download-label {
  text-decoration-thickness: 2px;
}

/* About us: company introduction and brand story, followed by the team. */
.about-intro {
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--mint);
}
.about-intro h1 {
  font-size: clamp(2.625rem, 5.6vw, 4.5rem);
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: var(--layout-gap);
  margin-top: 2.5rem;
}
.about-intro-grid > * {
  min-width: 0;
}
.about-copy > p {
  max-width: 42ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 300;
}
.about-copy strong {
  font-weight: 500;
}
.about-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 5vw, 4rem);
  padding: 14%;
}
.about-identity img {
  width: 100%;
  max-width: 22rem;
  height: auto;
}
.about-identity figcaption {
  max-width: 30ch;
  text-align: center;
  text-wrap: balance;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
}
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
}
.sectors li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.625rem 1rem 0.625rem 0.75rem;
  background: var(--white);
  font-family: var(--serif);
  font-size: 1rem;
}
/* Offset the skew so the symbol's lowest corner meets the text baseline. */
.sectors li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 11px;
  background: var(--green);
  transform: translateY(-2px) skewY(24deg);
}
.founder-link svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* Repeatable profile rows with compact, square portraits. */
.team-members {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section-space);
}
.team-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.team-heading h2 {
  max-width: 20ch;
  text-wrap: balance;
}
.team-heading > p {
  max-width: 65ch;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
}
.team-grid {
  --profile-spacing: clamp(2.5rem, 4vw, 3.5rem);
  /* Keep faces the same size when the profile changes from stacked to columns. */
  --portrait-size: clamp(180px, calc(160px + 5vw), 220px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--profile-spacing);
}
.founder {
  display: grid;
  grid-template-columns: var(--portrait-size) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 6vw, 5rem);
  min-width: 0;
}
.founder + .founder {
  padding-top: var(--profile-spacing);
  border-top: 1px solid rgba(50, 66, 52, 0.2);
}
.portrait-filter-defs {
  position: absolute;
  pointer-events: none;
}
.founder-portrait {
  width: var(--portrait-size);
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url('#team-portrait-duotone');
}
.founder-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
}
.founder-details {
  min-width: 0;
}
.founder h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1.15;
}
.founder-role {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.founder-bio {
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.7;
}
.founder-bio p + p {
  margin-top: 1rem;
}
.founder-link {
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

@media (max-width: 1100px) {
  .founder {
    gap: 2rem;
  }
  .founder-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 700px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 767px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 25rem;
    margin-inline: auto;
  }
}

/* Contact and shared footer. */
.contact {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--sticky-header-offset) - var(--contact-footer-height, 5.75rem));
  min-height: calc(100svh - var(--sticky-header-offset) - var(--contact-footer-height, 5.75rem));
  min-height: calc(100dvh - var(--sticky-header-offset) - var(--contact-footer-height, 5.75rem));
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  column-gap: var(--layout-gap);
  padding-block: clamp(2.5rem, 7vh, 6rem);
}
.contact-copy {
  min-width: 0;
}
.contact .eyebrow {
  grid-column: 1 / -1;
  color: var(--mint);
}
.contact h2 {
  max-width: 18ch;
  color: var(--green);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  text-wrap: balance;
}
.contact p {
  max-width: 42ch;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 300;
}
.contact .actions {
  margin-top: 2rem;
}
.contact .mail {
  color: var(--mint);
  font-size: 1.25rem;
}
.contact-identity {
  padding: 14%;
}
.contact-identity img {
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding-block: clamp(2rem, 5vh, 3rem);
  }
  .contact-identity {
    justify-self: center;
    width: min(75%, 19rem);
    margin-top: 2rem;
    padding: 10%;
  }
}
.legacy-page {
  padding-block: var(--section-space);
}
.legacy-page p {
  margin-top: 1.5rem;
}
.site-footer {
  --focus-color: var(--mint);
  background: #2a382c;
  color: var(--grey);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.site-footer .logo img {
  width: 5.5rem;
}

/* Reveal classes are added only after an observer is successfully attached. */
.reveal-animated {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-pending {
  opacity: 0;
  transform: translateY(1rem);
}
.reveal-pending:focus-within {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .resources-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .build .intro {
    margin-bottom: 2.5rem;
  }
}
@media (max-width: 860px) {
  /* Without JavaScript the expanded navigation is in normal document flow. */
  :root {
    --sticky-header-offset: 0px;
  }
  .site-header {
    position: static;
  }
  .site-header.has-menu {
    position: sticky;
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.5rem 1rem;
    padding-bottom: 0.5rem;
  }
  .nav-links a {
    width: 100%;
    padding: 0.75rem;
  }
  .site-header.has-menu .nav-links {
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(127, 212, 128, 0.25);
    padding-top: 0.75rem;
  }
  .site-header.has-menu .nav-links .btn {
    width: auto;
    margin-top: 0.25rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .step,
  .step + .step {
    padding: 0;
    border: 0;
  }
  .step + .step {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(50, 66, 52, 0.2);
  }
  .num {
    margin-bottom: 1.5rem;
  }
  .step p {
    max-width: 65ch;
  }
  .flow {
    display: none;
  }
}
@media (max-width: 700px) {
  .cards,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .hero .lede {
    margin-top: 1.5rem;
  }
  .hero .actions {
    gap: 0.75rem 1.25rem;
  }
  .how h2 {
    margin-bottom: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .reveal-animated,
  .btn,
  .nav-toggle .menu-line {
    transition: none;
  }
  .hero h1,
  .hero .lede,
  .hero .actions {
    opacity: 1 !important;
  }
  .about-intro h1,
  .about-identity img,
  .about-identity figcaption,
  .about-copy > p {
    opacity: 1 !important;
  }
  .hero .chip,
  .about-intro .sectors li {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-tile {
    opacity: 1 !important;
    transform: none !important;
  }
}
