/* Maosheng — copper earth aesthetic */

:root {
  --bg: #0c0b0a;
  --bg-elevated: #161412;
  --bg-card: #1e1b18;
  --text: #f5f0e8;
  --text-muted: #a89f92;
  --copper: #c9784a;
  --copper-light: #e8a87c;
  --copper-glow: rgba(201, 120, 74, 0.35);
  --mineral: #4a6b55;
  --sand: #d4c4b0;
  --border: rgba(245, 240, 232, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
  --page-pad-x: clamp(1.25rem, 4vw, 3rem);
  --page-max: 1200px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--copper-light);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

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

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  color: var(--bg);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: clamp(0.65rem, 1.5vw, 1.5rem);
  max-width: min(100%, 52rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.nav-tab {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.nav-tab:hover {
  color: var(--copper-light);
}

.nav-tab[aria-selected="true"] {
  color: var(--text);
}

.nav-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Main + tab panels */
main.tab-panels {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: block;
}

.tab-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}

.tab-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tab-panel.section {
  padding: 0;
}

.panel-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: clamp(2rem, 5vh, 4rem) var(--page-pad-x);
  -webkit-overflow-scrolling: touch;
}

.panel-scroll--home {
  padding: 0;
}

.page-wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
}

/* Hero */
.hero {
  position: relative;
  height: 100%;
  display: grid;
  align-items: end;
  padding: 2rem var(--page-pad-x) 2.5rem;
}

.hero--home {
  min-height: min(85vh, 720px);
  height: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 11, 10, 0.92) 0%, rgba(12, 11, 10, 0.55) 45%, rgba(12, 11, 10, 0.25) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--copper-light), var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: none;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper), #a85f38);
  color: var(--text);
  box-shadow: 0 4px 24px var(--copper-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--copper-glow);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-light);
}

.hero-stat {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(4rem, 12vh, 8rem);
  z-index: 1;
  text-align: right;
  display: none;
}

@media (min-width: 900px) {
  .hero-stat {
    display: block;
  }
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), var(--copper-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--copper);
  margin-left: 0.25rem;
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections shared */
.section {
  padding: clamp(2rem, 5vh, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-title em {
  font-style: normal;
  color: var(--copper-light);
}

/* Reveal animations */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible,
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* About */
.about .page-wrap {
  width: 100%;
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.about-visual figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.info-cards {
  display: grid;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--bg-card);
  padding: 2rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-light);
  margin-bottom: 1rem;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card--accent {
  background: linear-gradient(145deg, var(--bg-card), #2a221c);
  border-left: 3px solid var(--copper);
}

/* Operations bento */
.operations .panel-scroll {
  background: var(--bg-elevated);
}

.operations-header,
.operations-lead {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.operations-lead {
  color: var(--text-muted);
}

.bento {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-item--large {
    grid-row: span 2;
  }
}

.bento-item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--bg-card);
}

.bento-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.95), transparent);
}

.bento-caption h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.bento-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bento-item--stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(160deg, #2a1f18, var(--bg-card));
  border: 1px solid rgba(201, 120, 74, 0.2);
}

.bento-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--copper-light);
}

.bento-stat-suffix {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.bento-item--stat p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 16rem;
}

/* Products */
.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .products-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.product-uses {
  list-style: none;
  margin-top: 2rem;
}

.product-uses li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-uses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--copper);
  transform: translateY(-50%) rotate(45deg);
}

.products-visual {
  position: relative;
}

.products-visual img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.copper-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(232, 168, 124, 0.15) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Panorama (inline in Values tab) */
.panorama--inline {
  position: relative;
  margin: 2rem 0 3rem;
  border-radius: 2px;
  overflow: hidden;
  min-height: 200px;
}

.panorama--inline img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.85);
}

.panorama--inline blockquote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Values */

.values-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.value-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.value-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mineral);
  margin-bottom: 1rem;
}

.value-block--mission .value-tag {
  color: var(--copper);
}

.value-block p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.pillars li span {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.25s, color 0.25s;
}

.pillars li:hover span {
  border-color: var(--copper);
  color: var(--copper-light);
}

.why-us,
.sustainability {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.why-us h3,
.sustainability h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.why-us ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .why-us ul {
    grid-template-columns: 1fr 1fr;
  }
}

.why-us li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-us li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--copper);
}

.sustainability p {
  color: var(--text-muted);
  max-width: 52rem;
}

/* Contact */
.contact {
  position: relative;
}

.contact .panel-scroll {
  position: relative;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70vh;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 100%, var(--copper-glow), transparent),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(74, 107, 85, 0.2), transparent);
}

.contact-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 0;
}

.contact-inner {
  position: relative;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.contact-lead {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-link:hover {
  color: var(--copper-light);
}

.contact-map-section {
  width: 100%;
}

.contact-map-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-map-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.contact-map-btn:hover {
  border-color: var(--copper);
  color: var(--copper-light);
}

.contact-map-btn.is-active {
  background: linear-gradient(135deg, var(--copper), #a85f38);
  border-color: transparent;
  color: var(--text);
}

.contact-map {
  width: 100%;
  height: clamp(280px, 45vh, 420px);
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}

.contact-map--google {
  display: block;
}

.contact-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-map-frame.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.contact-location-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .contact-location-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out);
}

.contact-location-card:hover {
  border-color: rgba(201, 120, 74, 0.45);
}

.contact-location-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--copper-light);
  margin-bottom: 0.65rem;
}

.contact-location-card address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.contact-map-external {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copper-light);
}

.contact-map-external:hover {
  color: var(--text);
}

/* Homepage sections */
.home-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 0;
}

@media (min-width: 768px) {
  .home-highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-highlight {
  background: var(--bg-card);
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.home-highlight-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text), var(--copper-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.home-highlight-label {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-about {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .home-about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.home-about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.home-about-copy .btn {
  margin-top: 0.5rem;
}

.home-about-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.home-explore {
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.home-explore .section-title {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-explore .section-label {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-cards {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

@media (min-width: 768px) {
  .home-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-out);
}

.home-card:hover {
  border-color: rgba(201, 120, 74, 0.4);
}

.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.home-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.home-card-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.25s;
}

.home-card-link:hover {
  color: var(--text);
}

.home-cta {
  padding: clamp(3rem, 8vh, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.home-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(145deg, #2a1f18, var(--bg-card));
  border: 1px solid rgba(201, 120, 74, 0.25);
  border-left: 3px solid var(--copper);
}

.home-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.home-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer (lives at bottom of each tab's scroll area) */
.site-footer:not(.is-placed) {
  display: none;
}

.site-footer.is-placed {
  display: block;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  clear: both;
  margin-top: clamp(3rem, 8vh, 5rem);
  width: calc(100% + 2 * var(--page-pad-x));
  margin-left: calc(-1 * var(--page-pad-x));
  margin-right: calc(-1 * var(--page-pad-x));
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

#panel-contact .panel-scroll {
  overflow-y: auto;
  overflow-x: hidden;
}

#panel-contact .site-footer {
  display: block;
  visibility: visible;
}

.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  padding: clamp(2.5rem, 5vh, 3.5rem) 0;
}

@media (min-width: 600px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 3rem;
  }

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

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin: 0 0 1.25rem;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  width: 100%;
}

.footer-heading .footer-logo {
  margin: 0;
  text-transform: none;
  letter-spacing: -0.02em;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 16rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.25s;
}

.footer-link:hover {
  color: var(--copper-light);
}

.footer-contact a {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  word-break: break-word;
}

.footer-contact a:hover {
  color: var(--copper-light);
}

.footer-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(135deg, var(--copper), #a85f38);
  border: none;
  border-radius: 2px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}

.footer-cta:hover {
  box-shadow: 0 4px 20px var(--copper-glow);
  transform: translateY(-1px);
}

.footer-locations-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.footer-locations address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.footer-locations strong {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-note {
  opacity: 0.7;
  white-space: nowrap;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    z-index: 101;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    background: rgba(12, 11, 10, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-tab {
    text-align: left;
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav-tab::after {
    display: none;
  }

  .nav-tab[aria-selected="true"] {
    color: var(--copper-light);
  }
}

/* Publications page */
.publications-page .pub-board {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pub-header {
  margin-bottom: 2.5rem;
}

.pub-header .section-title {
  max-width: 36rem;
}

.pub-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 40rem;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.pub-filter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), color 0.25s, background 0.25s;
}

.pub-filter:hover {
  border-color: var(--copper);
  color: var(--copper-light);
}

.pub-filter.is-active {
  background: linear-gradient(135deg, var(--copper), #a85f38);
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 4px 20px var(--copper-glow);
}

.pub-board {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  min-height: 12rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.pub-card {
  background: var(--bg-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.pub-card:hover {
  border-left-color: var(--copper);
}

.pub-card[hidden] {
  display: none;
}

.pub-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  color: var(--text);
}

.pub-tag--procurement {
  background: rgba(201, 120, 74, 0.25);
  color: var(--copper-light);
}

.pub-tag--newsletter {
  background: rgba(74, 107, 85, 0.35);
  color: #9ec4a8;
}

.pub-tag--tender {
  background: rgba(232, 168, 124, 0.15);
  color: var(--sand);
}

.pub-tag--jobs {
  background: rgba(212, 196, 176, 0.12);
  color: var(--sand);
}

.pub-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pub-card-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 52rem;
}

.pub-card-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pub-card-date strong {
  font-weight: 600;
  color: var(--text);
}

.pub-download {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.pub-download:hover {
  color: var(--copper-light);
}

.pub-empty,
.pub-loading,
.pub-error {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  background: var(--bg-card);
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel { transition: none; }
  .reveal, .reveal-stagger > *,
  .copper-shimmer {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
