@font-face {
  font-family: "IRSN";
  src: url("/assets/fonts/irsn_light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IRSN";
  src: url("/assets/fonts/irsn_med.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1c1917;
  --copper: #c2410c;
  --copper-deep: #9a3412;
  --copper-line: #e25b2a;
  --paper: #f4f1eb;
  --paper-2: #ebe6de;
  --line: #e3dcd2;
  --muted: #5c564e;
  --white: #fffcf8;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f6f3ee;
  color: var(--ink);
  font-family: "IRSN", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

::selection { background: #f3d2c4; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 40;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, h3 { font-weight: 500; line-height: 1.2; }

h1 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  max-width: 9em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  max-width: 16em;
}

p { margin: 0; }

a { color: inherit; }

.kicker {
  margin: 0;
  color: var(--copper-deep);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.kicker a:hover { text-decoration: underline; }

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.8;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.15rem;
}

.brand img { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--ink); }

.top-end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang {
  color: var(--muted);
  text-decoration: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.lang:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.22);
}

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

.btn-ghost {
  background: rgba(255, 252, 248, 0.7);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.18);
}

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

.cta-short { display: none; }

.menu-pop { display: none; }


.hero-plane {
  position: relative;
  background:
    radial-gradient(ellipse 42% 55% at 18% 58%, rgba(194, 65, 12, 0.28), transparent 70%),
    #1c1917;
  color: #f4f1eb;
  padding: 1.5rem 0 3.25rem;
}

[dir="rtl"] .hero-plane {
  background:
    radial-gradient(ellipse 42% 55% at 82% 58%, rgba(194, 65, 12, 0.28), transparent 70%),
    #1c1917;
}

.hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 0.5rem;
}

.hero h1 {
  max-width: 11em;
  margin: 0.7rem 0 0.9rem;
  color: #fff;
  font-size: clamp(2.2rem, 3.8vw, 3.45rem);
  line-height: 1.25;
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.08);
  color: #f0c2a8;
  font-size: 0.88rem;
}

.hero .kicker::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--copper-line);
}

.hero .lead {
  max-width: 34rem;
  color: rgba(244, 241, 235, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero .btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 248, 0.35);
}

.hero .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 0;
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.stats span {
  color: rgba(244, 241, 235, 0.62);
  font-size: 0.88rem;
}

.board {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.board-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.board-top .grow {
  margin-inline-start: auto;
  font-weight: 300;
  color: rgba(244, 241, 235, 0.7);
}

.board-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(244, 241, 235, 0.12);
  color: #f0c2a8;
  font-size: 0.78rem;
  font-weight: 500;
}

.board-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
}

.board-body {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  min-height: 18.5rem;
}

.board-rail {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  background: #f7f4ef;
  border-inline-end: 1px solid var(--line);
}

.board-rail li {
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.board-rail li.is-on {
  color: var(--ink);
  font-weight: 500;
  background: #fff;
  border-inline-start: 3px solid var(--copper);
  padding-inline-start: calc(0.75rem - 3px);
}

.board-main {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  background: linear-gradient(180deg, #fffcf8 0%, #f7f3ec 100%);
}

.board-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.kpi {
  padding: 0.7rem 0.65rem 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.kpi strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.kpi span {
  color: var(--muted);
  font-size: 0.78rem;
}

.board-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.5rem;
}

.board-panel,
.board-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem 0.8rem;
}

.board-panel-title {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.board-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-rows li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.board-rows li:first-child { border-top: 0; padding-top: 0; }

.board-rows em {
  flex-shrink: 0;
  font-style: normal;
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 500;
}

.board-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 5.6rem;
}

.board-bars span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #e25b2a, #c2410c);
}

.board-bars span:nth-child(1) { height: 38%; }
.board-bars span:nth-child(2) { height: 52%; }
.board-bars span:nth-child(3) { height: 46%; }
.board-bars span:nth-child(4) { height: 78%; }
.board-bars span:nth-child(5) { height: 62%; }
.board-bars span:nth-child(6) { height: 88%; }

.sheet { background: #f6f3ee; }

.head { text-align: center; }

.head .kicker {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.head h2 { margin-inline: auto; }

.head .lead {
  margin-inline: auto;
}

.head-start,
.head-start h2,
.head-start .lead { text-align: start; margin-inline: 0; }

.head-start .kicker { margin-bottom: 0.55rem; }

.mods {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.mod {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1.25rem 1.15rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}

.mod h3 { margin: 0.35rem 0 0; font-size: 1.08rem; }

.mod p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 0.95rem;
}

.mod-no { display: none; }

.mod-go {
  margin-top: 0.7rem;
  color: var(--copper-deep);
  font-weight: 500;
  font-size: 0.92rem;
}

.mod:hover { box-shadow: 0 14px 28px rgba(28, 25, 23, 0.08); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.facts li {
  padding-inline: 0.85rem;
  border-inline-start: 1px solid var(--line);
}

.facts li:first-child {
  padding-inline-start: 0;
  border: 0;
}

.stage-note {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.stage-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(28, 25, 23, 0.07);
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.stage-top .grow {
  margin-inline-start: auto;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(244, 241, 235, 0.72);
}

.stage-body {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  min-height: 16.5rem;
}

.stage-side {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0;
  background: #f7f4ef;
  border-inline-end: 1px solid var(--line);
}

.stage-side li {
  padding: 0.42rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stage-side li.is-on {
  color: var(--ink);
  font-weight: 500;
  background: var(--white);
  border-inline-start: 3px solid var(--copper-line);
  padding-inline-start: calc(0.75rem - 3px);
}

.stage-main { padding: 1.05rem 1.1rem 1.2rem; }

.stage-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.stage-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.stage-lines {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.stage-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.stage-state {
  flex-shrink: 0;
  color: var(--copper-deep);
  font-size: 0.82rem;
  font-weight: 500;
}

.block { padding: 4.25rem 0; }

.rows { margin-top: 1.75rem; border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.row-no {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--copper-deep);
  font-weight: 500;
}

.row-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
}

.row-line {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
}

.row-go {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--copper-deep);
  font-weight: 500;
  font-size: 0.95rem;
}

.row:hover .row-name,
.row:hover .row-go { color: var(--copper); }

.band {
  background: var(--ink);
  color: var(--paper);
  padding: 4.25rem 0;
}

.band h2 { color: var(--paper); }

.kicker-light { color: #f0c2a8; }

.lead.light { color: rgba(244, 241, 235, 0.78); }

.loop, .steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.loop li, .steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(244, 241, 235, 0.16);
}

.steps { border-top: 0; }

.steps li {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

.loop-no {
  color: var(--copper-line);
  font-weight: 500;
  grid-row: 1 / span 2;
}

.steps .loop-no { color: var(--copper-deep); }

.loop-title { font-weight: 500; font-size: 1.15rem; }

.loop-text { color: rgba(244, 241, 235, 0.75); }

.steps .loop-text { color: var(--muted); }

.cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.cards article {
  padding: 1.35rem 1.2rem 1.3rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
  text-align: start;
}

.cards h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.cards h3::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background:
    linear-gradient(var(--copper), var(--copper)) center / 1rem 2px no-repeat,
    linear-gradient(var(--copper), var(--copper)) center / 2px 1rem no-repeat,
    #fff4ee;
}

.cards p { color: var(--muted); font-size: 0.95rem; }

.connect { background: #fff; }

.connect-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.checks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.checks li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem 0;
}

.checks h3 { margin: 0; font-size: 1.05rem; }

.checks p { margin: 0.15rem 0 0; color: var(--muted); }

.tick {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: #fff4ee;
  box-shadow: inset 0 0 0 1.5px var(--copper);
}

.tick::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.22rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid var(--copper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.orbit {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(194, 65, 12, 0.08), transparent 62%),
    repeating-radial-gradient(circle at center, transparent 0 2.35rem, rgba(227, 220, 210, 0.55) 2.35rem 2.37rem);
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(28, 25, 23, 0.2);
}

.orbit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.orbit li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5.6rem;
  margin-left: -2.8rem;
  margin-top: -1.05rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(28, 25, 23, 0.06);
}

.orbit li:nth-child(1) { transform: rotate(0deg) translateY(-8.2rem) rotate(0deg); }
.orbit li:nth-child(2) { transform: rotate(72deg) translateY(-8.2rem) rotate(-72deg); }
.orbit li:nth-child(3) { transform: rotate(144deg) translateY(-8.2rem) rotate(-144deg); }
.orbit li:nth-child(4) { transform: rotate(216deg) translateY(-8.2rem) rotate(-216deg); }
.orbit li:nth-child(5) { transform: rotate(288deg) translateY(-8.2rem) rotate(-288deg); }

.rule { border-top: 1px solid var(--line); }

.owns {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.owns li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.boundary {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 38rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 2.75rem;
  text-decoration: none;
  max-width: 46%;
}

.pager-next { text-align: end; margin-inline-start: auto; }

.pager-kicker { color: var(--muted); font-size: 0.85rem; }

.page-head { padding-top: 3rem; }

.page-head h1 { max-width: 14em; }

.need {
  margin-top: 2.25rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 36rem;
}

.need h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.need p { color: var(--muted); margin-bottom: 1.15rem; }

.close-band { padding: 0.25rem 0 4rem; }

.close {
  padding: 3.2rem 1.5rem;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(194, 65, 12, 0.45), transparent 52%),
    #1c1917;
  color: #f4f1eb;
}

.close h2 {
  margin-inline: auto;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 14em;
  color: #fff;
}

.close .lead {
  margin: 0 auto 1.4rem;
  color: rgba(244, 241, 235, 0.72);
}

.close .btn-primary {
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.45);
}

.foot {
  background: #141210;
  color: #f4f1eb;
  padding: 2.75rem 0 2.1rem;
}

.foot .brand { color: #fff; }

.foot-grid {
  display: grid;
  gap: 1.75rem;
}

.foot p {
  margin-top: 0.75rem;
  color: rgba(244, 241, 235, 0.62);
  max-width: 36ch;
}

.foot-links, .foot-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.foot-links a, .foot-contact a {
  color: rgba(244, 241, 235, 0.82);
  text-decoration: none;
  min-height: 1.75rem;
}

.foot-links a:hover, .foot-contact a:hover { color: #fff; }

.foot-contact p { margin-top: 0.6rem; }

@media (min-width: 800px) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }

  .row { grid-template-columns: 3.25rem minmax(0, 1fr) auto; }

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

  .mods { grid-template-columns: 1fr 1fr; }

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

  .foot-grid { grid-template-columns: 1.4fr 1fr 0.8fr; align-items: start; }
}

@media (min-width: 1100px) {
  .loop {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .loop li {
    grid-template-columns: 1fr;
    border-top: 0;
    border-inline-start: 1px solid rgba(244, 241, 235, 0.16);
    padding: 0 0 0 1rem;
  }

  .loop-no { grid-row: auto; }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 2.5rem;
    padding-top: 3.25rem;
  }

  .mods,
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .connect-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.8fr);
    gap: 2.5rem;
  }
}

@media (max-width: 979px) {
  .primary-nav { display: none; }

  .cta-long { display: none; }

  .cta-short { display: inline; }

  .menu-pop { display: block; }

  .menu-pop summary {
    list-style: none;
    cursor: pointer;
    min-height: 2.75rem;
    min-width: 2.75rem;
    display: grid;
    place-items: center;
    padding-inline: 0.35rem;
  }

  .menu-pop summary::-webkit-details-marker { display: none; }

  .menu-panel {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(244, 241, 235, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1.25rem 0.85rem;
  }

  .menu-pop[open] .menu-panel { display: grid; }

  .menu-panel a {
    text-decoration: none;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .board-body { grid-template-columns: 1fr; }

  .board-rail {
    display: flex;
    gap: 0.25rem;
    overflow: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.4rem;
  }

  .board-rail li { white-space: nowrap; border-radius: 8px; }

  .board-rail li.is-on {
    border-inline-start: 0;
    padding-inline-start: 0.75rem;
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .board-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .board-kpis { grid-template-columns: 1fr; }
}

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

@keyframes bar {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

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

  .hero-copy,
  .board,
  .stats,
  .board-bars span {
    animation: none;
  }

  .btn,
  .mod { transition: none; }
}

@media print {
  .top { position: static; }
  .top-end, .hero-actions, .close, .menu-pop { display: none; }
}
