/*
Theme Name: Agros APS
Theme URI: https://agrosaps.it
Author: Agros APS
Author URI: https://agrosaps.it
Description: Tema editoriale leggero per Agros APS, progettato per raccontare progetti, territorio e impatto sociale.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: agrosaps
*/

:root {
  --ag-yellow: #f4b429;
  --ag-yellow-deep: #d8940a;
  --ag-ink: #17231f;
  --ag-green: #29483d;
  --ag-green-soft: #4f6c61;
  --ag-cream: #f7f2e8;
  --ag-paper: #fffdf8;
  --ag-white: #ffffff;
  --ag-line: rgba(23, 35, 31, 0.14);
  --ag-muted: #68736f;
  --ag-radius-sm: 12px;
  --ag-radius: 24px;
  --ag-radius-lg: 40px;
  --ag-shadow: 0 24px 70px rgba(23, 35, 31, 0.12);
  --ag-container: 1200px;
  --ag-display: Georgia, "Times New Roman", serif;
  --ag-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ag-ink);
  background: var(--ag-paper);
  font-family: var(--ag-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ag-yellow);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--ag-container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 780px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ag-white);
  background: var(--ag-ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--ag-line);
  box-shadow: 0 10px 35px rgba(23, 35, 31, 0.07);
}

.header-inner {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 88px;
}

.site-brand {
  display: inline-flex;
  width: 205px;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  padding: 12px 0;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--ag-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ag-line);
  border-radius: 50%;
  color: var(--ag-ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 52px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ag-ink);
  background: var(--ag-yellow);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  color: var(--ag-white);
  background: var(--ag-ink);
  transform: translateY(-2px);
}

.button--outline {
  border-color: currentColor;
  color: var(--ag-white);
  background: transparent;
}

.button--outline:hover {
  color: var(--ag-ink);
  background: var(--ag-white);
}

.button--ghost {
  border-color: var(--ag-line);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--ag-ink);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "\2197";
  color: var(--ag-yellow-deep);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 88px));
  overflow: hidden;
  color: var(--ag-white);
  background-color: var(--ag-green);
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 31, 26, 0.92) 0%, rgba(17, 31, 26, 0.70) 42%, rgba(17, 31, 26, 0.12) 77%);
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: -45%;
  width: 560px;
  aspect-ratio: 1;
  border: 90px solid rgba(244, 180, 41, 0.24);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(780px, calc(100vh - 88px));
  align-items: center;
  padding-block: 100px;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--ag-yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-hero h1,
.section-title,
.article-header h1 {
  margin: 0;
  font-family: var(--ag-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.25rem, 7.3vw, 7.2rem);
}

.hero h1 em {
  color: var(--ag-yellow);
  font-weight: inherit;
}

.hero__lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__note {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - var(--ag-container)) / 2));
  bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__note::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--ag-yellow);
  box-shadow: 0 0 0 6px rgba(244, 180, 41, 0.2);
}

.impact-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  color: var(--ag-ink);
  background: var(--ag-yellow);
}

.impact-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.impact-item {
  display: grid;
  min-height: 132px;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px 38px;
  border-right: 1px solid rgba(23, 35, 31, 0.2);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item__number {
  font-family: var(--ag-display);
  font-size: 2.8rem;
  line-height: 1;
}

.impact-item strong,
.impact-item span {
  display: block;
}

.impact-item strong {
  font-size: 0.95rem;
}

.impact-item span {
  margin-top: 2px;
  font-size: 0.82rem;
  opacity: 0.72;
}

.section {
  padding-block: clamp(82px, 10vw, 142px);
}

.section--cream {
  background: var(--ag-cream);
}

.section--dark {
  color: var(--ag-white);
  background: var(--ag-ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 58px;
}

.section-title {
  max-width: 850px;
  font-size: clamp(2.75rem, 5.3vw, 5.3rem);
}

.section-heading__text {
  margin: 0;
  color: var(--ag-muted);
}

.section--dark .section-heading__text {
  color: rgba(255, 255, 255, 0.68);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(45px, 8vw, 110px);
  align-items: start;
}

.intro-mark {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--ag-radius-lg);
  background: var(--ag-green);
}

.intro-mark::before,
.intro-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.intro-mark::before {
  width: 440px;
  height: 440px;
  top: 45px;
  left: -155px;
  border: 105px solid var(--ag-yellow);
}

.intro-mark::after {
  width: 220px;
  height: 220px;
  right: -20px;
  bottom: -35px;
  border: 55px solid rgba(255, 255, 255, 0.13);
}

.intro-mark__word {
  position: absolute;
  z-index: 2;
  right: 35px;
  bottom: 38px;
  color: var(--ag-white);
  font-family: var(--ag-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-style: italic;
  line-height: 0.9;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.intro-copy h2 {
  margin: 0 0 28px;
  font-family: var(--ag-display);
  font-size: clamp(2.5rem, 4.7vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.intro-copy p {
  color: var(--ag-muted);
  font-size: 1.08rem;
}

.intro-copy p:first-of-type {
  color: var(--ag-ink);
  font-size: 1.28rem;
}

.values-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--ag-line);
}

.value-row {
  display: grid;
  grid-template-columns: 52px 150px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--ag-line);
}

.value-row__index {
  color: var(--ag-yellow-deep);
  font-weight: 900;
}

.value-row strong {
  font-size: 0.95rem;
}

.value-row span:last-child {
  color: var(--ag-muted);
  font-size: 0.95rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.activity-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--ag-radius);
  background: rgba(255, 255, 255, 0.035);
}

.activity-card:nth-child(1) {
  background: var(--ag-yellow);
  color: var(--ag-ink);
}

.activity-card__number {
  display: block;
  margin-bottom: 95px;
  font-family: var(--ag-display);
  font-size: 3rem;
  opacity: 0.8;
}

.activity-card h3 {
  max-width: 430px;
  margin: 0 0 18px;
  font-family: var(--ag-display);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.activity-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.activity-card:nth-child(1) p {
  color: rgba(23, 35, 31, 0.72);
}

.activity-card::after {
  position: absolute;
  top: 32px;
  right: 32px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "\2197";
  opacity: 0.55;
}

.project-feature {
  display: grid;
  min-height: 570px;
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: var(--ag-radius-lg);
  background: var(--ag-white);
  box-shadow: var(--ag-shadow);
}

.project-feature:nth-of-type(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.project-feature:nth-of-type(even) .project-feature__image {
  order: 2;
}

.project-feature__image {
  min-height: 460px;
  background-position: center;
  background-size: cover;
}

.project-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 78px);
}

.project-feature__tag,
.post-card__meta,
.article-meta {
  color: var(--ag-yellow-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-feature h3 {
  margin: 16px 0 22px;
  font-family: var(--ag-display);
  font-size: clamp(2.25rem, 4.2vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.project-feature p {
  color: var(--ag-muted);
}

.project-feature .text-link {
  margin-top: 18px;
}

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

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  background: var(--ag-white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  box-shadow: var(--ag-shadow);
  transform: translateY(-7px);
}

.post-card__image-link {
  display: block;
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.035);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.post-card h2,
.post-card h3 {
  margin: 14px 0 16px;
  font-family: var(--ag-display);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.post-card h2 a,
.post-card h3 a {
  text-decoration: none;
}

.post-card p {
  margin: 0 0 22px;
  color: var(--ag-muted);
}

.post-card .text-link {
  margin-top: auto;
}

.network-strip {
  border-block: 1px solid var(--ag-line);
}

.network-grid {
  display: grid;
  grid-template-columns: 220px repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.network-grid > * {
  display: flex;
  min-height: 112px;
  align-items: center;
  padding: 24px 28px;
  border-right: 1px solid var(--ag-line);
}

.network-grid > *:last-child {
  border-right: 0;
}

.network-grid__label {
  color: var(--ag-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.network-brand {
  --network-color: var(--ag-green);
  --network-soft: rgba(70, 106, 76, 0.08);
  position: relative;
  gap: 10px;
  justify-content: center;
  color: var(--network-color);
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.network-brand::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.network-brand:hover,
.network-brand:focus-visible {
  color: var(--network-color);
  background: var(--network-soft);
}

.network-brand:hover::after,
.network-brand:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.network-brand__mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.network-brand__wordmark {
  color: currentColor;
  font-family: var(--ag-sans);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.network-brand__wordmark strong {
  font-weight: 700;
}

.network-brand--university {
  --network-color: #cf1d56;
  --network-soft: #fae8ee;
}

.network-brand--safe {
  --network-color: #1769aa;
  --network-soft: #e5f0f8;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(85px, 11vw, 150px);
  color: var(--ag-white);
  background: var(--ag-green);
}

.cta-band::after {
  position: absolute;
  top: -170px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 95px solid rgba(244, 180, 41, 0.48);
  border-radius: 50%;
  content: "";
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.cta-band h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--ag-display);
  font-size: clamp(3rem, 6vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(85px, 11vw, 145px);
  color: var(--ag-white);
  background: var(--ag-green);
}

.page-hero::after {
  position: absolute;
  right: -100px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  border: 90px solid rgba(244, 180, 41, 0.42);
  border-radius: 50%;
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 950px;
  font-size: clamp(3.4rem, 7vw, 7rem);
}

.page-hero p {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 80px;
  align-items: start;
}

.prose {
  color: #33413c;
  font-size: 1.08rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  color: var(--ag-ink);
  font-family: var(--ag-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.prose h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.8rem;
}

.prose a {
  color: #8a5e00;
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 10px 0 10px 30px;
  border-left: 6px solid var(--ag-yellow);
  color: var(--ag-ink);
  font-family: var(--ag-display);
  font-size: 1.65rem;
  line-height: 1.25;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-block: 0.55em;
}

.side-note {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: var(--ag-radius);
  background: var(--ag-cream);
}

.side-note h3 {
  margin: 0 0 18px;
  font-family: var(--ag-display);
  font-size: 1.65rem;
  font-weight: 500;
}

.side-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-note li {
  padding-block: 12px;
  border-bottom: 1px solid var(--ag-line);
  color: var(--ag-muted);
  font-size: 0.92rem;
}

.side-note li:last-child {
  border-bottom: 0;
}

.article-header {
  padding-block: clamp(75px, 9vw, 125px) 55px;
}

.article-header h1 {
  max-width: 980px;
  margin-top: 22px;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
}

.article-header__lead {
  max-width: 790px;
  margin: 28px 0 0;
  color: var(--ag-muted);
  font-size: 1.22rem;
}

.article-hero-image {
  width: min(calc(100% - 40px), 1400px);
  max-height: 780px;
  aspect-ratio: 16 / 9;
  margin: 0 auto clamp(65px, 8vw, 110px);
  border-radius: var(--ag-radius-lg);
  object-fit: cover;
}

.article-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--ag-line);
}

.archive-header {
  padding-block: 75px 60px;
}

.archive-header h1 {
  margin: 0;
  font-family: var(--ag-display);
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.pagination {
  margin-top: 55px;
}

.pagination .nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pagination .page-numbers {
  display: grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  padding-inline: 14px;
  border: 1px solid var(--ag-line);
  border-radius: 999px;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--ag-yellow);
  background: var(--ag-yellow);
}

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

.contact-card {
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  background: var(--ag-white);
}

.contact-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ag-yellow);
  font-weight: 900;
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 10px;
  font-family: var(--ag-display);
  font-size: 1.9rem;
  font-weight: 500;
}

.contact-card p {
  margin: 0;
  color: var(--ag-muted);
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #101a17;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 70px;
  padding-block: 85px 65px;
}

.footer-brand img {
  width: 177px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 440px;
  margin: 26px 0 0;
}

.footer-column h2 {
  margin: 0 0 22px;
  color: var(--ag-white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--ag-yellow);
}

.footer-bottom {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.footer-bottom__links {
  display: flex;
  gap: 22px;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found__number {
  margin: 0;
  color: var(--ag-yellow);
  font-family: var(--ag-display);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    position: fixed;
    inset: 88px 0 auto;
    display: none;
    padding: 30px 20px 40px;
    border-top: 1px solid var(--ag-line);
    background: var(--ag-paper);
    box-shadow: 0 25px 45px rgba(23, 35, 31, 0.12);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 13px 0;
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    min-height: 46px;
    padding: 11px 16px;
  }

  .section-heading,
  .intro-grid,
  .content-layout,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .impact-strip__grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 35, 31, 0.2);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }

  .project-feature,
  .project-feature:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .project-feature:nth-of-type(even) .project-feature__image {
    order: 0;
  }

  .network-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .network-grid > * {
    border-bottom: 1px solid var(--ag-line);
  }

  .network-grid > *:first-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .network-brand:nth-child(odd) {
    border-right: 0;
  }

  .network-brand:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .side-note {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--ag-container));
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-brand {
    width: 168px;
  }

  .site-nav {
    inset: 76px 0 auto;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .hero__inner {
    min-height: calc(100vh - 76px);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(17, 31, 26, 0.94), rgba(17, 31, 26, 0.52));
  }

  .hero__inner {
    padding-block: 78px 115px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 5.25rem);
  }

  .hero__note {
    right: 20px;
    left: 20px;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 38px;
  }

  .section-title {
    font-size: 2.85rem;
  }

  .intro-mark {
    min-height: 370px;
  }

  .value-row {
    grid-template-columns: 40px 1fr;
  }

  .value-row span:last-child {
    grid-column: 2;
  }

  .activity-grid,
  .posts-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: 340px;
    padding: 28px;
  }

  .project-feature__image {
    min-height: 330px;
  }

  .project-feature__content {
    padding: 34px 28px 42px;
  }

  .network-grid {
    grid-template-columns: 1fr;
  }

  .network-grid > *,
  .network-grid > *:first-child {
    grid-column: auto;
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--ag-line);
  }

  .network-grid > *:last-child {
    border-bottom: 0;
  }

  .cta-band__inner {
    align-items: start;
  }

  .article-hero-image {
    width: calc(100% - 28px);
    border-radius: 20px;
  }

  .article-footer,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
