/* Aira Rootstock Archive — company charter (polished UI) */
:root {
  --rs-ink: #16241c;
  --rs-mute: rgba(22, 36, 28, 0.58);
  --rs-mist: #e4eee6;
  --rs-paper: #f2f7f3;
  --rs-line: rgba(22, 36, 28, 0.12);
  --rs-moss: #286347;
  --rs-moss-deep: #184832;
  --rs-amber: #a07c2a;
  --rs-bark: #3f3228;
  --rs-font-display: "Zilla Slab", Georgia, serif;
  --rs-font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --rs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.aira-rootstock {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rs-font-body);
  color: var(--rs-ink);
  background: var(--rs-paper);
  -webkit-font-smoothing: antialiased;
}

body.aira-rootstock .aira-bare-main {
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
  min-height: 100vh;
  display: block;
  overflow-x: clip;
}

.rs-archive {
  position: relative;
  min-height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.15rem clamp(1rem, 3.5vw, 2rem) 2.5rem;
  overflow-x: clip;
}

.rs-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse 58% 40% at 0% 0%, rgba(40, 99, 71, 0.11), transparent 55%),
    radial-gradient(ellipse 48% 34% at 100% 62%, rgba(160, 124, 42, 0.08), transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #d2e0d6 0%, var(--rs-mist) 45%, #cad9ce 100%);
  background-blend-mode: normal, normal, multiply, normal;
}

.rs-top,
.rs-hero,
.rs-chapters,
.rs-pulse,
.rs-mission,
.rs-rings,
.rs-values,
.rs-grafts,
.rs-bark,
.rs-foot {
  position: relative;
  z-index: 1;
}

.rs-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.rs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--rs-ink);
  font-family: var(--rs-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  justify-self: start;
}

.rs-seal {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--rs-ink);
  color: #b8e0c4;
  font-family: var(--rs-font-body);
  font-size: 0.8rem;
  font-weight: 800;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  transition: transform 0.28s var(--rs-ease);
}

.rs-brand:hover .rs-seal {
  transform: rotate(-6deg) scale(1.04);
}

.rs-top-tag {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-mute);
  font-weight: 750;
}

.rs-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-self: end;
  justify-content: flex-end;
}

.rs-top-nav a {
  color: var(--rs-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.05rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rs-top-nav a:hover {
  color: var(--rs-moss);
  border-bottom-color: var(--rs-moss);
}

.rs-hero {
  margin-bottom: 1.35rem;
  animation: rs-rise 0.7s var(--rs-ease) both;
}

.rs-kicker,
.rs-section-mark {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-moss);
  font-weight: 800;
}

.rs-brand-hero,
.rs-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--rs-font-display);
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--rs-ink);
}

.rs-lede {
  margin: 0;
  max-width: 44ch;
  color: var(--rs-mute);
  font-size: 1.05rem;
  line-height: 1.55;
}

.rs-chapters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.6rem 0;
  background: linear-gradient(180deg, rgba(228, 238, 230, 0.97), rgba(228, 238, 230, 0.9));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rs-line);
  animation: rs-rise 0.65s 0.06s var(--rs-ease) both;
}

.rs-chapters a {
  text-decoration: none;
  color: var(--rs-mute);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 0.28rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rs-chapters a.is-on,
.rs-chapters a:hover {
  color: var(--rs-ink);
  background: rgba(242, 247, 243, 0.65);
  border-bottom-color: var(--rs-amber);
}

.rs-pulse {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  border-top: 1px dashed var(--rs-line);
  animation: rs-rise 0.65s 0.08s var(--rs-ease) both;
}

.rs-pulse li {
  display: grid;
  gap: 0.1rem;
}

.rs-pulse strong {
  font-family: var(--rs-font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--rs-moss-deep);
  line-height: 1;
}

.rs-pulse span {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-mute);
  font-weight: 750;
}

.rs-section-head {
  margin-bottom: 1.2rem;
}

.rs-section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--rs-font-display);
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rs-section-head p {
  margin: 0;
  color: var(--rs-mute);
  max-width: 44ch;
  line-height: 1.5;
}

.rs-mission {
  margin-bottom: 2.75rem;
  padding: 1.4rem 0 1.85rem;
  border-block: 1px solid var(--rs-line);
  animation: rs-rise 0.65s 0.1s var(--rs-ease) both;
}

.rs-inscribe {
  margin: 0.75rem 0 1rem;
  padding: 0;
  border: none;
}

.rs-inscribe p {
  margin: 0;
  font-family: var(--rs-font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 30ch;
  color: var(--rs-ink);
}

.rs-mission-aside {
  margin: 0;
  max-width: 50ch;
  color: var(--rs-mute);
  font-size: 0.98rem;
  line-height: 1.55;
}

.rs-rings {
  margin-bottom: 2.75rem;
  animation: rs-rise 0.65s 0.12s var(--rs-ease) both;
}

.rs-ring-stage {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 800px) {
  .rs-ring-stage {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    align-items: center;
    gap: 2rem;
  }
}

.rs-ring-visual {
  position: relative;
  width: min(100%, 14rem);
  aspect-ratio: 1;
  margin: 0 auto;
  transition: transform 0.35s var(--rs-ease);
}

.rs-ring-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% * var(--rs-s));
  height: calc(100% * var(--rs-s));
  border-radius: 50%;
  border: 2px solid rgba(63, 50, 40, 0.32);
  background: transparent;
  animation: rs-pulse-ring 4s ease-in-out infinite;
  animation-delay: calc((1 - var(--rs-s)) * 1.2s);
}

.rs-ring-pith {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: var(--rs-amber);
  box-shadow: 0 0 0 5px rgba(160, 124, 42, 0.18);
}

.rs-ring-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 3px solid rgba(40, 99, 71, 0.22);
}

.rs-ring-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0 0.85rem 1rem;
  position: relative;
}

.rs-ring-item::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 1.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.18rem;
  background: var(--rs-paper);
  border: 2px solid var(--rs-moss);
}

.rs-ring-item.is-live::before {
  background: var(--rs-amber);
  border-color: var(--rs-amber);
  box-shadow: 0 0 0 3px rgba(160, 124, 42, 0.2);
}

.rs-ring-year {
  font-family: var(--rs-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rs-bark);
  padding-top: 0.1rem;
}

.rs-ring-item time {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-mute);
  font-weight: 750;
  margin-bottom: 0.15rem;
}

.rs-ring-item strong {
  display: block;
  font-family: var(--rs-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.rs-ring-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rs-mute);
  line-height: 1.45;
}

.rs-values {
  margin-bottom: 2.75rem;
  animation: rs-rise 0.65s 0.14s var(--rs-ease) both;
}

.rs-pods {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.rs-pod {
  border: 1px solid var(--rs-line);
  border-radius: 0.4rem;
  padding: 0.15rem 0.85rem 0.55rem;
  background: rgba(242, 247, 243, 0.55);
}

.rs-pod summary {
  list-style: none;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  padding: 0.55rem 0;
  font-family: var(--rs-font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.rs-pod summary::-webkit-details-marker {
  display: none;
}

.rs-pod-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  background: var(--rs-moss);
  color: var(--rs-paper);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--rs-font-body);
  transition: transform 0.25s var(--rs-ease), background 0.25s ease;
}

.rs-pod[open] .rs-pod-mark {
  background: var(--rs-amber);
  transform: rotate(-6deg) scale(1.04);
}

.rs-pod p {
  margin: 0 0 0.45rem 3.15rem;
  color: var(--rs-mute);
  line-height: 1.5;
  max-width: 44ch;
  animation: rs-rise 0.35s var(--rs-ease) both;
}

.rs-benefit-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.rs-benefit-rail li {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--rs-moss-deep);
  background: rgba(40, 99, 71, 0.07);
  border: 1px solid rgba(40, 99, 71, 0.16);
  border-radius: 0.28rem;
  padding: 0.3rem 0.6rem;
}

.rs-grafts {
  margin-bottom: 2.75rem;
  animation: rs-rise 0.65s 0.16s var(--rs-ease) both;
}

.rs-graft-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--rs-moss);
}

.rs-graft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--rs-ink);
  font-family: var(--rs-font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 0.3rem;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rs-graft:hover {
  color: var(--rs-moss);
  background: rgba(242, 247, 243, 0.8);
  transform: translateX(2px);
}

.rs-graft-node {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.12rem;
  background: var(--rs-amber);
  box-shadow: 0 0 0 3px rgba(160, 124, 42, 0.16);
}

.rs-graft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  background: var(--rs-ink);
  color: var(--rs-paper);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rs-btn:hover {
  background: var(--rs-moss-deep);
  transform: translateY(-1px);
}

.rs-btn:focus-visible {
  outline: 2px solid var(--rs-moss);
  outline-offset: 3px;
}

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

.rs-btn-ghost:hover {
  background: var(--rs-ink);
  color: var(--rs-paper);
}

.rs-bark {
  margin-bottom: 1.85rem;
  animation: rs-rise 0.65s 0.18s var(--rs-ease) both;
}

.rs-bark-panel {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 800px) {
  .rs-bark-panel {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2rem;
    align-items: start;
  }
}

.rs-bark-grid {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.05rem;
  border-top: 3px solid var(--rs-bark);
  border-radius: 0 0 0.4rem 0.4rem;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(63, 50, 40, 0.035) 11px,
      rgba(63, 50, 40, 0.035) 12px
    ),
    rgba(242, 247, 243, 0.65);
}

@media (min-width: 520px) {
  .rs-bark-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rs-bark-wide {
    grid-column: 1 / -1;
  }
}

.rs-bark-grid > div {
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--rs-line);
}

.rs-bark-grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-mute);
  font-weight: 800;
}

.rs-bark-grid dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.rs-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88rem;
}

.rs-desk {
  padding: 1.15rem 1.05rem 1.2rem;
  background: rgba(242, 247, 243, 0.7);
  border: 1px solid var(--rs-line);
  border-radius: 0.4rem;
}

.rs-desk h3 {
  margin: 0 0 0.65rem;
  font-family: var(--rs-font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.rs-desk > p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--rs-mute);
}

.rs-desk a {
  color: var(--rs-moss-deep);
  font-weight: 750;
  text-decoration: none;
}

.rs-desk a:hover {
  text-decoration: underline;
}

.rs-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rs-line);
}

.rs-policies a {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--rs-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rs-amber);
}

.rs-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rs-line);
  font-size: 0.8rem;
  color: var(--rs-mute);
}

.rs-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.rs-foot a {
  color: var(--rs-ink);
  font-weight: 750;
  text-decoration: none;
}

.rs-foot a:hover {
  color: var(--rs-moss);
}

@keyframes rs-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rs-pulse-ring {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .rs-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tag"
      "nav nav";
  }

  .rs-brand {
    grid-area: brand;
  }

  .rs-top-tag {
    grid-area: tag;
    text-align: right;
  }

  .rs-top-nav {
    grid-area: nav;
    justify-self: start;
    justify-content: flex-start;
  }

  .rs-brand-hero,
  .rs-hero h1 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .rs-pod p {
    margin-left: 0;
  }

  .rs-graft-actions {
    flex-direction: column;
  }

  .rs-graft-actions .rs-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-hero,
  .rs-chapters,
  .rs-pulse,
  .rs-mission,
  .rs-rings,
  .rs-values,
  .rs-grafts,
  .rs-bark,
  .rs-ring-circle,
  .rs-pod p {
    animation: none !important;
  }

  .rs-brand:hover .rs-seal,
  .rs-btn:hover,
  .rs-graft:hover,
  .rs-pod[open] .rs-pod-mark {
    transform: none;
  }

  .rs-ring-visual {
    transition: none;
  }
}
