:root {
  --red: #ab252d;
  --deep: #771d25;
  --ink: #282828;
  --muted: #6f6f6f;
  --subtle: #929292;
  --cream: #f7f4ef;
  --surface: #f8f7f5;
  --line: #e9e6e1;
  --skeleton: #efeae3;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.8 var(--font-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.015em;
  overflow-x: clip;
}

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

button,
input,
select {
  font: inherit;
}

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

a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--red);
}

button {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cc9b60;
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  width: calc(100% - 80px);
  margin: auto;
}

/* Image Loading Skeleton & Smooth Reveal */
.media-box {
  position: relative;
  overflow: hidden;
  background: var(--skeleton);
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

img.is-loading {
  opacity: 0;
}

img.is-loaded {
  opacity: 1;
}

/* Utility Bar */
.utility {
  background: #f5f5f5;
  color: #707070;
  font-size: 12px;
  border-bottom: 1px solid #eee;
}

.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
}

.utility a {
  margin-left: 28px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid transparent;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 68px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.25;
  display: block;
  color: #302927;
}

.brand small {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 1.35px;
  display: block;
  color: #777;
  margin-top: 2px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--red);
  background: #fff;
}

.search-form input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  width: 230px;
  color: var(--ink);
}

.search-form button {
  border: 0;
  background: none;
  font-size: 22px;
  padding: 0 14px;
  color: #777;
  line-height: 1;
}

.search-form button:hover {
  color: var(--red);
}

.menu {
  display: none;
}

/* Main Navigation */
nav {
  background: var(--red);
  color: #fff;
}

.mobile-search {
  display: none;
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav a {
  padding: 15px 22px;
  font-size: 16px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: var(--deep);
  color: #fff;
}

.nav .nav-love {
  margin-left: auto;
  background: #8d2028;
  padding-inline: 26px;
}

.nav .nav-love:hover {
  background: var(--deep);
}

/* Hero Section */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 488px;
  max-width: 1440px;
  margin: auto;
}

.hero-copy {
  padding: 67px 32px 58px max(40px, calc((100vw - 1240px) / 2));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 13px;
}

.eyebrow:before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font: 600 44px/1.48 var(--font-heading);
  letter-spacing: 2px;
  margin: 22px 0 18px;
  white-space: nowrap;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  font-size: 14px;
  line-height: 2.05;
  color: var(--muted);
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 11px 23px;
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  font-size: 14px;
  border-radius: 2px;
  min-height: 44px;
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.hero-media {
  position: relative;
  min-width: 0;
  background: var(--skeleton);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.hero-media:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cream), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.22));
}

.photo-caption {
  position: absolute;
  bottom: 22px;
  right: 32px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 14px;
  border-radius: 2px;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 12%, transparent 12%);
}

/* Quick Links */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-top: 30px;
  background: #fff;
}

.quick a {
  padding: 21px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.quick a:hover {
  background: #fcfaf7;
}

.quick a:last-child {
  border-right: 0;
}

.quick i {
  font-size: 28px;
  font-style: normal;
  color: var(--red);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.quick strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.quick small {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-title h2 {
  font: 600 27px/1.3 var(--font-heading);
  letter-spacing: 1px;
  margin: 0;
}

.section-title span {
  font: 11px Georgia, serif;
  color: #a5a5a5;
  letter-spacing: 1.5px;
}

.more {
  font-size: 13px;
  color: #777;
  white-space: nowrap;
}

.more span {
  color: var(--red);
  margin-left: 8px;
}

/* News Grid (Home) */
.news-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 40px;
}

.feature {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--skeleton);
  border-radius: 2px;
  min-height: 320px;
}

.feature > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.feature:hover > img {
  transform: scale(1.03);
}

.feature-info {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 48px 24px 22px;
}

.feature-info small {
  font-size: 12px;
  opacity: 0.85;
}

.feature-info h3 {
  font-size: 20px;
  line-height: 1.55;
  margin: 6px 0 0;
  font-weight: 500;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.news-item:first-child {
  padding-top: 0;
}

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

.news-item > div:last-child {
  min-width: 0;
  flex: 1;
}

.date {
  min-width: 64px;
  text-align: center;
  color: #999;
  border-right: 1px solid #e2dfd9;
  padding-right: 18px;
  font-size: 11px;
  line-height: 1.5;
  flex-shrink: 0;
}

.date b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--red);
  font-weight: 400;
}

.news-item h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 5px;
}

.news-item p {
  font-size: 13px;
  color: #888;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Projects & Cards */
.project-section {
  background: var(--surface);
}

.tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.tabs button,
.tabs a.tab-link {
  border: 1px solid #dfdcd7;
  background: #fff;
  color: #666;
  padding: 7px 18px;
  font-size: 13px;
  border-radius: 2px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tabs button.selected,
.tabs button:hover,
.tabs a.tab-link.selected,
.tabs a.tab-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40, 32, 28, 0.07);
  border-color: #dfd9d0;
}

.card-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--skeleton);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

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

.tag {
  font-size: 11px;
  color: var(--red);
  display: inline-block;
  align-self: flex-start;
  background: #f8ebeb;
  padding: 2px 10px;
  border-radius: 2px;
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 11px 0 9px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 18px;
}

.card-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-bottom b {
  font-weight: 500;
  color: var(--red);
}

/* Impact Banner */
.impact {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: center;
  background: var(--red);
  color: #fff;
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 2px;
}

.impact h3 {
  font-family: var(--font-heading);
  font-size: 23px;
  margin: 0 0 6px;
  letter-spacing: 1.8px;
  font-weight: 400;
}

.impact small {
  font-size: 12px;
  opacity: 0.8;
}

.impact-stat {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 10px;
}

.impact-stat-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.impact-stat b {
  font: 36px/1.2 Georgia, serif;
}

.impact-stat span {
  font-size: 12px;
}

.impact-stat p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.88;
}

/* Transparency & About Mini */
.info-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
}

.info-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.info-link {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.info-link:hover {
  border-color: #d9c9c4;
  background: #fcfaf7;
}

.info-link strong {
  font-size: 16px;
  font-weight: 500;
}

.info-link small {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

.info-link > span {
  color: var(--red);
  flex-shrink: 0;
}

.about-mini p {
  font-size: 14px;
  line-height: 2.05;
  color: var(--muted);
  margin: 0 0 14px;
}

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

.gallery-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: #d9c9c4;
  box-shadow: 0 8px 20px rgba(40, 32, 28, 0.06);
}

.gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--skeleton);
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.03);
}

.gallery-card > span {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}

.gallery-card .gallery-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card b {
  color: var(--red);
  flex-shrink: 0;
}

/* Lightbox Dialog */
#photo-dialog {
  border: 0;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  width: min(92vw, 1080px);
  max-width: 92vw;
  max-height: 92vh;
  padding: 16px 20px 20px;
  margin: auto;
  overflow: hidden;
}

#photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dialog-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

#dialog-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

#dialog-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dialog-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

#dialog-photo {
  max-height: 68vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  border-radius: 2px;
}

.dialog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.dialog-nav:hover {
  background: rgba(171, 37, 45, 0.9);
}

.dialog-nav[hidden] {
  display: none;
}

#dialog-prev {
  left: 8px;
}

#dialog-next {
  right: 8px;
}

#dialog-caption {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 14px 0 0;
}

/* Join CTA */
.join {
  background: #f5f0e9;
  padding: 38px 0;
  border-block: 1px solid #eae3d9;
}

.join .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.join h2 {
  font: 600 28px/1.5 var(--font-heading);
  font-weight: 500;
  margin: 0 0 6px;
}

.join p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.join .actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Footer */
footer {
  background: #29282a;
  color: #c2c2c2;
  padding-top: 44px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 35px;
  padding-bottom: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font: 600 19px var(--font-heading);
}

.foot-brand img {
  width: 42px;
  height: 41px;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
  padding: 2px;
}

.footer-grid h3 {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid > div > a:not(.foot-brand) {
  font-size: 13px;
  line-height: 2.15;
}

.footer-grid > div > a:not(.foot-brand) {
  display: block;
}

.footer-grid a:hover {
  color: #fff;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #8c8c8c;
}

/* Back to Top */
#top {
  position: fixed;
  right: 20px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0));
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

#top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#top:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Subpage Banner & Layout */
.page-banner {
  padding: 36px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-banner small {
  color: #888;
  font-size: 12px;
}

.page-banner h1 {
  font: 600 34px/1.45 var(--font-heading);
  margin: 10px 0 6px;
}

.page-banner p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 45px;
  padding-block: 42px 64px;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  background: #f7f6f4;
  border-bottom: 1px solid #fff;
  font-size: 14px;
}

.sidebar a.on {
  background: var(--red);
  color: #fff;
  font-weight: 500;
}

.prose {
  font-size: 15px;
  line-height: 2.1;
  min-width: 0;
}

.prose h2 {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-top: 0;
}

.prose h3 {
  font-size: 19px;
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 28px 0 10px;
}

.prose p {
  color: #555;
  margin: 14px 0;
}

.prose ul {
  color: #555;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose .note {
  padding: 18px 22px;
  background: var(--cream);
  border-left: 3px solid var(--red);
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 20px 0;
}

/* Article Detail */
.article {
  max-width: 840px;
  margin: 44px auto 68px;
}

.article h1 {
  font: 600 30px/1.55 var(--font-heading);
  text-align: center;
  margin: 0 0 16px;
}

.article .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  color: #888;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.article .meta span {
  white-space: nowrap;
}

.article .meta .sep {
  color: #ccc;
}

.article .article-body {
  font-size: 16px;
  line-height: 2.15;
  color: #444;
  padding: 24px 0 20px;
}

.article-body p {
  white-space: pre-line;
  margin: 0 0 16px;
}

.article-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #f7f6f4;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
}

.article-photo-btn img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  margin: auto;
  background: #f7f6f4;
}

.article .caption {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 10px 0 4px;
}

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-pager a {
  padding: 14px 16px;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-pager a:hover {
  border-color: var(--red);
  background: #fff;
}

.article-pager small {
  font-size: 12px;
  color: #888;
}

.article-pager strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-pager .next-link {
  text-align: right;
}

.article .end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* Listing & Search Filter Bar */
.listing {
  padding-block: 36px 68px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-search {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
}

.listing-search:focus-within {
  border-color: var(--red);
}

.listing-search input {
  border: 0;
  outline: 0;
  padding: 7px 12px;
  font-size: 13px;
  width: 190px;
  background: transparent;
}

.listing-search button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  min-height: 36px;
}

.listing-search button:hover {
  background: var(--deep);
}

.filter-bar select {
  padding: 7px 14px;
  min-height: 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #555;
  font-size: 13px;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 22px;
  background: var(--cream);
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: #555;
}

.search-summary a {
  color: var(--red);
  font-weight: 500;
}

.search-projects {
  margin-bottom: 34px;
}

.search-projects h2 {
  font: 600 20px var(--font-heading);
  margin: 0 0 16px;
}

.listing .cards {
  row-gap: 26px;
}

.listing .card h3 {
  font-size: 17px;
}

.listing .card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  padding: 36px 24px;
  background: #f7f6f4;
  border: 1px dashed #ddd8d0;
  border-radius: 2px;
  text-align: center;
  color: #777;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* Docs, Contact, Steps, Pagination */
.doc-row {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.doc-row small {
  color: #888;
  font-size: 12px;
}

.doc-row a {
  color: var(--red);
  font-size: 13px;
  white-space: nowrap;
}

.doc-row a.btn {
  color: var(--red);
}

.doc-row a.btn:hover {
  color: #fff;
}

.contact-box {
  padding: 24px 28px;
  background: var(--cream);
  border-radius: 2px;
  margin-top: 20px;
}

.contact-box h3 {
  margin: 0 0 8px;
}

.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.step:before {
  counter-increment: step;
  content: '0' counter(step);
  color: var(--red);
  font: 30px/1.1 Georgia, serif;
  min-width: 44px;
}

.step h3 {
  margin: 0;
}

.step p {
  margin: 7px 0;
}

.pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #777;
  font-size: 13px;
}

.pagination button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 8px 18px;
  min-height: 40px;
}

.pagination button:not(:disabled):hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.loading-state {
  text-align: center;
  color: #888;
}

/* Wide Desktop */
@media (min-width: 1550px) {
  .hero-copy {
    padding-left: 100px;
  }
}

/* Tablet */
@media (max-width: 1080px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .brand strong {
    font-size: 23px;
  }

  .brand small {
    font-size: 8px;
  }

  .head {
    padding-block: 18px;
  }

  .search-form input {
    width: 165px;
  }

  .nav a {
    padding: 14px 14px;
    font-size: 15px;
  }

  .hero-inner {
    min-height: 430px;
  }

  .hero-copy {
    padding-left: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .quick a {
    padding: 18px 14px;
    gap: 12px;
  }

  .quick i {
    font-size: 23px;
    width: 28px;
  }

  .quick strong {
    font-size: 15px;
  }

  .section-title span {
    display: none;
  }

  .info-grid {
    gap: 36px;
  }

  .cards {
    gap: 18px;
  }

  .footer-grid {
    gap: 24px;
  }

  .foot-brand {
    font-size: 17px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .utility .wrap {
    padding-block: 5px;
    font-size: 11px;
  }

  .utility .wrap > span:last-child {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom-color: var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .head {
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 17px;
    letter-spacing: 0.3px;
  }

  .brand small {
    font-size: 6px;
    letter-spacing: 0.3px;
  }

  .search-form {
    display: none;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #faf8f5;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 22px;
    color: var(--red);
    flex-shrink: 0;
  }

  nav {
    display: none;
    position: sticky;
    top: 69px;
    z-index: 39;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }

  nav.open {
    display: block;
  }

  .nav-wrap {
    width: 100%;
    padding: 14px 16px 16px;
  }

  .mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 3px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
  }

  .mobile-search button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    background: var(--deep);
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    min-height: 40px;
    white-space: nowrap;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .nav a {
    font-size: 14px;
    text-align: center;
    padding: 11px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav .nav-love {
    margin: 0;
    background: #8d2028;
  }

  /* Hero Mobile */
  .hero-inner {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .hero-media:before {
    background: linear-gradient(0deg, rgba(247, 244, 239, 0.9) 0%, transparent 26%);
  }

  .photo-caption {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-copy {
    padding: 22px 18px 30px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(26px, 7.2vw, 33px);
    line-height: 1.45;
    margin: 14px 0 12px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
  }

  /* Quick Links Mobile */
  .quick {
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .quick a {
    border-bottom: 1px solid var(--line);
    padding: 16px 14px;
    gap: 10px;
  }

  .quick a:nth-child(2) {
    border-right: 0;
  }

  .quick a:nth-child(3),
  .quick a:nth-child(4) {
    border-bottom: 0;
  }

  .quick i {
    font-size: 22px;
    width: 26px;
  }

  .quick strong {
    font-size: 15px;
  }

  .quick small {
    font-size: 11px;
  }

  /* Sections Mobile */
  .section {
    padding: 36px 0;
  }

  .section-head {
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature {
    min-height: 220px;
  }

  .feature > img {
    min-height: 220px;
    max-height: 260px;
  }

  .feature-info {
    padding: 38px 18px 16px;
  }

  .feature-info h3 {
    font-size: 17px;
  }

  .news-item {
    gap: 14px;
    padding: 14px 0;
  }

  .date {
    min-width: 54px;
    padding-right: 12px;
  }

  .date b {
    font-size: 22px;
  }

  .news-item h3 {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-body {
    padding: 18px;
  }

  .tabs {
    gap: 7px;
  }

  .tabs button,
  .tabs a.tab-link {
    padding: 6px 13px;
    font-size: 13px;
  }

  /* Impact Mobile - prevents number collision */
  .impact {
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 12px;
    margin-top: 26px;
  }

  .impact > div:first-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .impact h3 {
    font-size: 19px;
    letter-spacing: 1px;
  }

  .impact-stat {
    padding: 0 4px;
  }

  .impact-stat:nth-child(2) {
    border-left: 0;
  }

  .impact-stat b {
    font-size: clamp(19px, 5.2vw, 25px);
  }

  .impact-stat span {
    font-size: 11px;
  }

  .impact-stat p {
    font-size: 11px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-links {
    gap: 12px;
  }

  .info-link {
    padding: 16px 14px;
  }

  .info-link strong {
    font-size: 15px;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery-card > span {
    padding: 10px 10px;
    font-size: 12px;
  }

  #photo-dialog {
    width: 96vw;
    max-width: 96vw;
    padding: 12px 12px 16px;
  }

  #dialog-photo {
    max-height: 62vh;
  }

  .dialog-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  /* Join CTA Mobile */
  .join {
    padding: 30px 0;
  }

  .join .wrap {
    display: block;
  }

  .join h2 {
    font-size: 22px;
  }

  .join .actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .join .actions .btn {
    width: 100%;
    padding-inline: 12px;
    gap: 8px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .copyright {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  /* Subpages Mobile */
  .page-banner {
    padding: 24px 0;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 22px 44px;
  }

  .sidebar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
  }

  .sidebar a {
    font-size: 13px;
    padding: 9px 14px;
    white-space: nowrap;
    border-bottom: 0;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .prose {
    font-size: 15px;
    line-height: 2;
  }

  .prose h2 {
    font-size: 21px;
  }

  .article {
    margin-block: 24px 44px;
  }

  .article h1 {
    font-size: 23px;
    line-height: 1.55;
  }

  .article .meta {
    font-size: 12px;
    gap: 4px 10px;
  }

  .article .article-body {
    font-size: 16px;
    line-height: 2;
    padding: 18px 0 14px;
  }

  .article-pager {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-pager .next-link {
    text-align: left;
  }

  .listing {
    padding-block: 24px 48px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .listing-search {
    min-width: 0;
  }

  .listing-search input {
    width: 100%;
    min-width: 0;
  }

  .doc-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .step {
    gap: 14px;
  }

  .step:before {
    min-width: 34px;
    font-size: 24px;
  }

  #top {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 16px;
  }

  .info-links {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
