/* Site behavior and responsive adjustments. Keep desktop art direction in design.css. */
:root { --forest: #0f1f18; --mint: #8fd4bf; --ink: #16281f; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { line-height: normal; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button { cursor: pointer; font-family: inherit; }
:focus-visible { outline: 3px solid #34a184; outline-offset: 5px; }
svg { flex-shrink: 0; }
.grid-x > .cell { width: auto; min-width: 0; }
.grid-container { width: 100%; }
.site-shell { overflow-x: clip; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: #fff; color: #16281f; padding: 14px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.menu-toggle { display: none; background: transparent; border: 1px solid #365847; color: #16281f; padding: 10px 14px; border-radius: 7px; font-size: 14px; font-weight: 700; }
.draft-note, .scale-note { font-size: 12px; color: #53675b; line-height: 1.6; }
.scale-visual { margin: 0; min-width: 0; }
.scale-note { margin: 12px 0 0; text-align: left; }
#site-notice { border: 1px solid #48745e; border-radius: 18px; padding: 40px; max-width: 500px; width: calc(100% - 32px); background: #12241d; color: #dbe7e0; box-shadow: 0 24px 80px #0007; }
#site-notice::backdrop { background: #06110bcc; backdrop-filter: blur(4px); }
#site-notice h2 { font-family: Newsreader, Georgia, serif; color: #fff; font-size: 30px; line-height: 1.1; margin: 0 0 16px; }
#site-notice p { line-height: 1.6; }
.notice-close { position: absolute; right: 14px; top: 10px; color: #c8d8cf; font-size: 30px; width: 36px; height: 36px; }
.notice-done.button { background: #34a184; color: #07160f; border-radius: 7px; font-weight: 700; margin: 8px 0 0; }
@media (max-width: 1150px) {
  .header-inner { gap: 12px; padding-inline: 24px; }
  .primary-navigation { order: 3; flex-basis: 100%; justify-content: center; }
  .header-actions { margin-left: auto; }
  .hero-content { padding-left: 32px; }
  .hero-content > div { max-width: 500px; }
  .meeting-card { right: 24px; max-width: 225px; }
  .columns-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 95px; }
  .section-inner { padding: 52px 24px; }
  .header-inner { padding: 10px 20px; }
  .header-inner > a img { width: 66px; height: 66px; margin: -6px 0; }
  .header-inner > a span { font-size: 15px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .js .primary-navigation { display: none; }
  .js .primary-navigation.is-open { display: flex; }
  .primary-navigation { flex-direction: column; align-items: stretch; margin: 8px 0 0; }
  .primary-navigation a { padding: 13px 10px; font-size: 15px; }
  .hero-scene { display: block; min-height: 0; padding-bottom: 80px; background-position: 60% center; }
  .hero-content { padding: 64px 24px 32px; }
  .hero-content > div { max-width: 550px; }
  .hero h1 { font-size: clamp(38px, 7vw, 56px); }
  .meeting-card { position: relative; display: block; top: auto; right: auto; margin: 0 24px; max-width: 360px; }
  .hero-location { right: 24px; bottom: 20px; }
  .columns-2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .happening .columns-2 .columns-2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .columns-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .columns-3 { grid-template-columns: minmax(0,1fr); }
  .closing { padding: 90px 24px 72px; }
  footer > div { padding-inline: 24px; gap: 24px; }
}
@media (max-width: 480px) {
  .columns-4 { grid-template-columns: minmax(0,1fr); }
  .columns-6 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .section-inner { padding: 42px 20px; }
  .header-inner { padding: 10px 16px; }
  .hero-content { padding: 48px 20px 28px; }
  .hero h1 { font-size: 40px; }
  .hero-content p:first-child { font-size: 11px; line-height: 1.7; }
  .hero-content a { justify-content: center; width: 100%; }
  .meeting-card { margin-inline: 20px; }
  h2 { overflow-wrap: break-word; }
  .projects h2 { font-size: 36px; }
  .happening .columns-2 .columns-2 > div { padding: 18px; }
  .scale-visual .scale-style-99 { padding: 24px 14px; }
  .scale-visual .scale-labels div { white-space: normal; }
  .news-card { gap: 12px; }
  #action { padding: 26px 20px; }
  footer nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Reserve the supplied illustrations' intrinsic aspect ratio before lazy loading. */
.scale img { height: auto; }

/* Longer sourced copy: retain the mockup's cards without crowding their labels. */
.local-scale-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.local-scale-callout .scale-style-96 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.local-scale-detail { margin-bottom: 20px; }
.scale-labels .scale-style-118 { white-space: normal; }
.source-note { font-size: 12px; line-height: 1.7; color: #46574d; margin: 20px 0 0; }
.source-note a { color: #245c45; text-decoration: underline; text-underline-offset: 3px; }
.source-note a:hover { color: #16281f; }
#facts .scale-style-127 { align-items: flex-start; }
#facts .scale-style-129 { line-height: 1.2; }
#facts .scale-style-139 { color: #46574d; }
.scale-style-121 > .source-note { background: #edf4ef; border-radius: 8px; padding: 12px 16px; }

/* Homepage projects reuse the tracker assets; news is text-only. */
.home-project-image { width: 100%; height: 100%; background: #e7eee8; }
.home-project-image img { width: 100%; height: 100%; object-fit: cover; }
.home-project-image.is-illustration img { object-fit: contain; padding: 30px 16px 22px; mix-blend-mode: multiply; }
.home-project-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 9px; background: #112b22d9; color: #e4f2e9; font-size: 9px; line-height: 1.4; }
.home-project-image.is-illustration .home-project-caption { background: #dde9e2; color: #405d4e; }
.news-card { padding: 20px 22px; }

/* Ease into the next section over a longer distance, with soft endpoints. */
.scale-style-90 {
  height: clamp(520px, 42vw, 720px);
  background: linear-gradient(180deg,
    rgba(18,36,29,0) 0%,
    rgba(18,36,29,.028) 10%,
    rgba(18,36,29,.104) 20%,
    rgba(18,36,29,.216) 30%,
    rgba(18,36,29,.352) 40%,
    rgba(18,36,29,.5) 50%,
    rgba(18,36,29,.648) 60%,
    rgba(18,36,29,.784) 70%,
    rgba(18,36,29,.896) 80%,
    rgba(18,36,29,.972) 90%,
    #12241d 100%);
}

/* One selected-page treatment for every shared navigation bar. */
.primary-navigation [aria-current="page"] { border-radius: 0; box-shadow: 0 2px #34a184; font-weight: 700; }
