* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--gw-canvas);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--gw-text);
  background: var(--gw-canvas);
  font: 16px/1.55 Manrope, system-ui, sans-serif;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

main {
  overflow: clip;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--gw-control-text);
  background: var(--gw-control-bg);
  border: 1px solid var(--gw-line-strong);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--gw-focus);
  outline-offset: 3px;
}

/* Open Source extras on top of the shared gw-header styles in assets/theme.css. */

.gw-header {
  position: sticky;
  top: 0;
}

.gw-search-results > p {
  margin: 0;
  color: var(--gw-text-muted);
}

.hero-launcher a:focus-visible,
.charter-index a:focus-visible,
.hero-pagination button:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--gw-focus);
  outline-offset: 3px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  overflow: hidden;
}

.hero-art,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity 0.9s ease,
    transform 8s ease;
}

.hero-art.is-active {
  z-index: -2;
  opacity: 1;
  transform: scale(1);
}

.hero-art--01 {
  --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/jeweled-archipelago-day.webp");
  --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/jeweled-archipelago-night.webp");
  --gw-art-light-position: center;
  --gw-art-dark-position: center;
}

.hero-art--02 {
  --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/solar-steppe-observatories-day.webp");
  --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/solar-steppe-observatories-night.webp");
  --gw-art-light-position: center;
  --gw-art-dark-position: center;
}

.hero-art--03 {
  --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/aurora-conservatory-belt-day.webp");
  --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/aurora-conservatory-belt-night.webp");
  --gw-art-light-position: center;
  --gw-art-dark-position: center;
}

.hero__veil {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      var(--gw-canvas) 0%,
      color-mix(in srgb, var(--gw-canvas) 90%, transparent) 17%,
      color-mix(in srgb, var(--gw-canvas) 30%, transparent) 43%,
      transparent 66%
    ),
    linear-gradient(
      90deg,
      var(--gw-canvas) 0%,
      var(--gw-art-veil) 38%,
      color-mix(in srgb, var(--gw-canvas) 10%, transparent) 74%
    );
}

.hero__shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-content: stretch;
  gap: 20px;
  margin: auto;
  padding: clamp(72px, 9vw, 128px) 0 34px;
}

.hero__copy {
  max-width: 820px;
  align-self: center;
}

.technical-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gw-gold);
  font: 700 0.68rem IBM Plex Mono, ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.technical-kicker i {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: none;
  background: var(--gw-accent-3);
  border-radius: 999px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gw-accent-3) 16%, transparent);
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", Didot, Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 920px;
  margin: 28px 0;
  font-size: clamp(4.8rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero__copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--gw-text-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-pagination {
  justify-self: end;
  display: flex;
  gap: 8px;
  padding: 9px;
  background: color-mix(in srgb, var(--gw-surface) 76%, transparent);
  border: 1px solid var(--gw-line-strong);
  border-radius: 10px;
  backdrop-filter: blur(16px);
}

.hero-pagination button {
  width: 31px;
  height: 4px;
  padding: 0;
  cursor: pointer;
  background: var(--gw-text-muted);
  border: 0;
  opacity: 0.38;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-pagination button[aria-pressed="true"] {
  opacity: 1;
  transform: scaleX(1.18);
}

.hero-launcher {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  scroll-margin-top: 90px;
}

.hero-launcher a {
  position: relative;
  min-height: 154px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px 10px;
  overflow: visible;
  color: var(--gw-text);
  background: color-mix(in srgb, var(--gw-surface) 88%, transparent);
  border: 1px solid var(--gw-line-strong);
  border-radius: 13px;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hero-launcher a:hover,
.hero-launcher a:focus-visible {
  z-index: 4;
  background: color-mix(in srgb, var(--gw-accent-3) 10%, var(--gw-surface));
  border-color: var(--gw-line-strong);
  transform: translateY(-5px);
}

.hero-launcher img {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
}

.app-name {
  font-family: Marcellus, Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.1;
}

.app-description {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 11px);
  width: min(250px, 82vw);
  padding: 11px 13px;
  color: var(--gw-control-text);
  background: var(--gw-control-bg);
  border: 1px solid var(--gw-line-strong);
  border-radius: 9px;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.app-description::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--gw-control-bg);
  border-right: 1px solid var(--gw-line-strong);
  border-bottom: 1px solid var(--gw-line-strong);
  transform: translate(-50%, -5px) rotate(45deg);
}

.hero-launcher a:hover .app-description,
.hero-launcher a:focus-visible .app-description {
  opacity: 1;
  transform: translate(-50%, 0);
}

.charter-section,
footer {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.charter-section {
  padding: clamp(92px, 11vw, 145px) 0;
  scroll-margin-top: 76px;
  border-top: 1px solid var(--gw-line);
}

.charter-heading {
  max-width: 1040px;
  margin-bottom: clamp(54px, 8vw, 92px);
}

.charter-heading h2 {
  margin: 24px 0 32px;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.charter-heading > p:last-child {
  max-width: 790px;
  margin: 0;
  color: var(--gw-text-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.charter-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: clamp(46px, 8vw, 110px);
}

.charter-index {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.charter-index a {
  color: var(--gw-text-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.charter-index a:hover {
  color: var(--gw-text);
}

.charter-principles {
  display: grid;
  gap: 1px;
  background: var(--gw-line);
  border: 1px solid var(--gw-line);
}

.charter-principles article {
  scroll-margin-top: 100px;
  padding: clamp(30px, 5vw, 56px);
  background: var(--gw-surface);
}

.charter-principles small {
  color: var(--gw-gold);
  font: 700 0.68rem IBM Plex Mono, ui-monospace, monospace;
  letter-spacing: 0.16em;
}

.charter-principles h3 {
  max-width: 820px;
  margin: 20px 0 14px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.charter-principles p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--gw-text-muted);
  font-size: 1.05rem;
}

.charter-definition {
  margin-top: 1px;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--gw-line);
  background: color-mix(in srgb, var(--gw-verdigris) 7%, var(--gw-surface));
}

.charter-definition h3 {
  margin: 18px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.charter-definition > p:last-child {
  max-width: 800px;
  color: var(--gw-text-muted);
}

.charter-definition code {
  color: var(--gw-text);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
  color: var(--gw-text-muted);
  border-top: 1px solid var(--gw-line);
  font-size: 0.78rem;
}

@media (max-width: 1160px) {
  .hero {
    min-height: auto;
  }

  .hero__shell {
    min-height: 860px;
  }

  .hero-launcher {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero__veil {
    background:
      linear-gradient(
        0deg,
        var(--gw-canvas) 0%,
        color-mix(in srgb, var(--gw-canvas) 91%, transparent) 42%,
        color-mix(in srgb, var(--gw-canvas) 36%, transparent) 72%,
        transparent 100%
      );
  }

  .hero-art--01 {
    --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/jeweled-archipelago-day-mobile.webp");
    --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/jeweled-archipelago-night-mobile.webp");
  }

  .hero-art--02 {
    --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/solar-steppe-observatories-day-mobile.webp");
    --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/solar-steppe-observatories-night-mobile.webp");
  }

  .hero-art--03 {
    --gw-art-light: url("https://oss.greenways.ai/visual-language/artwork/www/aurora-conservatory-belt-day-mobile.webp");
    --gw-art-dark: url("https://oss.greenways.ai/visual-language/artwork/www/aurora-conservatory-belt-night-mobile.webp");
  }

  .hero__shell {
    width: min(100% - 24px, 1320px);
    min-height: 790px;
    padding: 68px 0 24px;
  }

  h1 {
    font-size: clamp(4.4rem, 23vw, 7rem);
  }

  .hero-pagination {
    justify-self: start;
  }

  .hero-launcher {
    grid-template-columns: repeat(7, 142px);
    overflow-x: auto;
    overflow-y: visible;
    padding: 64px 0 12px;
    scroll-snap-type: x proximity;
  }

  .hero-launcher a {
    scroll-snap-align: start;
  }

  .charter-layout {
    grid-template-columns: 1fr;
  }

  .charter-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 18px;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .charter-section,
  footer {
    width: min(100% - 24px, 1200px);
  }

  .charter-heading h2 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .charter-index {
    grid-template-columns: 1fr;
  }
}

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

  body,
  .hero-art,
  .hero-pagination button,
  .hero-launcher a,
  .app-description {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
