:root {
  --bg: #05080e;
  --panel: rgba(10, 14, 24, 0.88);
  --panel-soft: rgba(13, 20, 33, 0.9);
  --line: rgba(143, 182, 255, 0.14);
  --text: #eef3ff;
  --muted: #98a7c1;
  --blue: #6aa9ff;
  --blue-strong: #9fb8f0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-body: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Bahnschrift", "Arial Black", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(72, 113, 255, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(168, 188, 235, 0.12), transparent 18%),
    linear-gradient(180deg, #05080e 0%, #091120 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -2;
}

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

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

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(106, 169, 255, 0.08), transparent 22%),
    radial-gradient(circle at 76% 72%, rgba(159, 184, 240, 0.08), transparent 18%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header .container {
  width: min(1420px, calc(100% - 28px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(143, 182, 255, 0.08);
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(18px);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-row {
  min-height: 92px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand img {
  width: 150px;
  filter: drop-shadow(0 10px 24px rgba(106, 169, 255, 0.24));
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  min-width: max-content;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(143, 182, 255, 0.08);
  border-radius: 999px;
  background: rgba(12, 18, 29, 0.82);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.site-nav a,
.header-cta,
.button,
.info-card-link {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(106, 169, 255, 0.14);
  color: var(--text);
}

.header-cta {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(159, 184, 240, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106, 169, 255, 0.22), rgba(159, 184, 240, 0.16));
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.header-row::-webkit-scrollbar,
.site-nav::-webkit-scrollbar {
  display: none;
}

.header-cta:hover,
.button:hover,
.info-card-link:hover {
  transform: translateY(-1px);
}

.header-cta:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid rgba(159, 184, 240, 0.85);
  outline-offset: 3px;
}

.hero,
.page-hero {
  padding: 36px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.98fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 28px;
  align-items: start;
  padding-top: 48px;
}

.hero-copy,
.page-hero-copy,
.section-heading,
.hero-panel,
.info-card,
.rule-card,
.department-card,
.side-panel,
.cta-panel {
  position: relative;
}

.hero-copy,
.page-hero-copy,
.section-heading {
  display: grid;
  gap: 24px;
}

.section-kicker,
.mini-label,
.link-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-kicker::after {
  content: "";
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(106, 169, 255, 0));
}

h1,
h2,
h3,
.hero-wall-text,
.rule-number,
.department-pill {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.5rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #07101b;
  box-shadow: 0 18px 34px rgba(106, 169, 255, 0.22);
}

.button-secondary {
  border-color: rgba(143, 182, 255, 0.18);
  background: rgba(12, 19, 31, 0.84);
  color: var(--text);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats article,
.info-card,
.rule-card,
.department-card,
.hero-panel,
.side-panel,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-width: 152px;
  padding: 18px 20px;
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.8rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(143, 182, 255, 0.14);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(15, 22, 38, 0.48), rgba(5, 8, 15, 0.9)),
    radial-gradient(circle at 30% 30%, rgba(106, 169, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(159, 184, 240, 0.16), transparent 22%),
    linear-gradient(140deg, rgba(10, 16, 27, 0.95), rgba(5, 8, 15, 0.92));
}

.glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.68;
  animation: floatGlow 9s ease-in-out infinite;
}

.glow-left {
  top: 56px;
  left: 42px;
  background: rgba(106, 169, 255, 0.24);
}

.glow-right {
  right: 36px;
  bottom: 60px;
  background: rgba(159, 184, 240, 0.16);
  animation-delay: -3s;
}

.hero-wall-text {
  position: absolute;
  right: -52px;
  font-size: clamp(7.4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.84;
  color: rgba(246, 250, 255, 0.09);
  transform: rotate(-7deg);
  white-space: nowrap;
}

.hero-wall-text-top {
  top: 80px;
}

.hero-wall-text-bottom {
  bottom: 42px;
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
}

.hero-brand-panel {
  position: absolute;
  top: 34px;
  left: 34px;
  right: 34px;
  gap: 18px;
  align-items: start;
}

.hero-brand-panel img {
  width: min(100%, 230px);
}

.hero-panel strong,
.side-panel strong {
  font-size: 1.15rem;
  line-height: 1.45;
}

.hero-panel-right {
  position: absolute;
  top: 260px;
  right: 28px;
  max-width: 300px;
}

.hero-panel-left {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 300px;
}

.side-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: var(--panel-soft);
}

.section {
  padding-top: 84px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.card-grid,
.detail-grid {
  display: grid;
  gap: 18px;
}

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

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.info-card,
.department-card,
.info-card-link {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 26px;
}

.info-card-link {
  color: inherit;
}

.link-label {
  margin-top: 6px;
}

.page-note {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  color: var(--muted);
}

.page-note-success {
  border-color: rgba(106, 169, 255, 0.3);
  color: #dcebff;
}

.page-note-warning {
  border-color: rgba(235, 195, 120, 0.28);
  color: #f3dca7;
}

.page-note-error {
  border-color: rgba(255, 132, 132, 0.28);
  color: #ffc1c1;
}

.admin-card,
.command-card,
.media-card,
.application-card,
.empty-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
}

.admin-card-copy {
  display: grid;
  gap: 14px;
}

.admin-card-stack {
  display: grid;
  gap: 18px;
}

.admin-subsection {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(143, 182, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(106, 169, 255, 0.1), transparent 38%),
    rgba(7, 11, 19, 0.9);
}

.admin-subsection-copy {
  display: grid;
  gap: 10px;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.media-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.media-form span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-form input,
.media-form select,
.media-form textarea {
  width: 100%;
  border: 1px solid rgba(143, 182, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 11, 19, 0.9);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.media-form textarea {
  min-height: 140px;
  resize: vertical;
}

.media-form-full {
  grid-column: 1 / -1;
}

.builder-panel,
.builder-questions,
.application-answer-list,
.apply-question-list {
  display: grid;
  gap: 16px;
}

.builder-toolbar,
.question-editor-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.question-editor,
.application-answer-item,
.apply-question,
.locked-card {
  padding: 18px;
  border: 1px solid rgba(143, 182, 255, 0.1);
  border-radius: 20px;
  background: rgba(7, 11, 19, 0.9);
}

.question-editor {
  display: grid;
  gap: 16px;
}

.question-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.locked-card {
  border-style: dashed;
}

.application-answer-item,
.apply-question {
  display: grid;
  gap: 10px;
}

.application-answer-item strong,
.apply-question strong {
  font-size: 1rem;
}

.application-answer-item p {
  white-space: pre-wrap;
}

.apply-form {
  grid-template-columns: 1fr;
}

.apply-question label {
  display: grid;
  gap: 10px;
}

.media-grid,
.application-portals-grid,
.applications-grid,
.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-card,
.command-card,
.application-card,
.empty-card {
  border-radius: 28px;
  overflow: hidden;
}

.application-portals-grid {
  grid-template-columns: 1fr;
}

.application-portal-shell {
  display: grid;
  gap: 12px;
}

.media-card {
  display: grid;
}

.media-preview {
  aspect-ratio: 16 / 9;
  background: rgba(7, 11, 19, 0.95);
  overflow: hidden;
}

.media-image,
.media-video,
.media-embed {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.media-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.applications-grid {
  align-items: start;
}

.application-portal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 18%, rgba(106, 169, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(159, 184, 240, 0.12), transparent 28%),
    linear-gradient(120deg, rgba(7, 11, 19, 0.96), rgba(10, 16, 28, 0.92));
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.application-portal-card:hover,
.application-portal-card:focus-visible {
  border-color: rgba(143, 182, 255, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  transform: translate3d(0, -6px, 0);
}

.application-portal-copy {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.application-portal-copy h3 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.application-portal-copy p {
  max-width: 54ch;
  font-size: 1.06rem;
}

.application-portal-side {
  display: grid;
  gap: 14px;
  justify-items: end;
  align-content: center;
  text-align: right;
}

.application-portal-side strong {
  font-size: 1.04rem;
  letter-spacing: 0.02em;
}

.application-portal-actions {
  display: flex;
  justify-content: flex-end;
}

.application-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.application-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill,
.permission-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(143, 182, 255, 0.18);
  border-radius: 999px;
  background: rgba(106, 169, 255, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill-pending {
  background: rgba(235, 195, 120, 0.14);
  border-color: rgba(235, 195, 120, 0.28);
  color: #f3dca7;
}

.status-pill-accepted {
  background: rgba(106, 169, 255, 0.14);
  border-color: rgba(106, 169, 255, 0.28);
  color: #dcebff;
}

.status-pill-denied {
  background: rgba(255, 132, 132, 0.14);
  border-color: rgba(255, 132, 132, 0.28);
  color: #ffc1c1;
}

.permissions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.permission-chip-warning {
  background: rgba(235, 195, 120, 0.14);
  border-color: rgba(235, 195, 120, 0.28);
  color: #f3dca7;
}

.application-decision,
.application-review {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(143, 182, 255, 0.1);
  border-radius: 20px;
  background: rgba(7, 11, 19, 0.9);
}

.application-review label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.application-review span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-review-note {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 182, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 11, 19, 0.95);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.inline-link {
  color: var(--blue-strong);
  font-weight: 700;
}

.command-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.command-list {
  display: grid;
  gap: 14px;
}

.command-member {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(143, 182, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 11, 19, 0.9);
}

.command-member strong {
  font-size: 1rem;
}

.command-member span {
  color: var(--muted);
}

.detail-page-shell {
  display: grid;
}

.detail-page-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(106, 169, 255, 0.1), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow);
}

.detail-page-copy {
  display: grid;
  gap: 18px;
}

.detail-page-overview {
  max-width: 54ch;
  color: #dcebff;
  font-size: 1.1rem;
  line-height: 1.8;
}

.detail-page-body {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(143, 182, 255, 0.1);
  border-radius: 24px;
  background: rgba(7, 11, 19, 0.88);
  color: #e9eef9;
  line-height: 1.88;
}

.detail-page-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.empty-card {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.rule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
}

.rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(106, 169, 255, 0.2), rgba(159, 184, 240, 0.28));
  color: #eef3ff;
  font-size: 1.2rem;
  font-weight: 800;
}

.department-card {
  min-height: 210px;
}

.department-pill {
  display: inline-flex;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106, 169, 255, 0.2), rgba(159, 184, 240, 0.18));
  color: #dfeafe;
  font-size: 1rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 20%, rgba(159, 184, 240, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(13, 20, 33, 0.88), rgba(8, 12, 20, 0.96));
}

.coming-soon-panel {
  align-items: center;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 96px;
  padding: 20px 28px;
  border: 1px solid rgba(159, 184, 240, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(106, 169, 255, 0.18), rgba(159, 184, 240, 0.12));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.site-footer {
  padding: 64px 0 36px;
}

.site-footer p {
  font-size: 0.95rem;
}

.brand,
.site-nav,
.header-cta,
.hero-copy > *,
.page-hero-copy > *,
.page-hero-side > *,
.hero-visual,
.hero-stats > *,
.section-heading > *,
.card-grid > *,
.detail-grid > *,
.rule-card,
.department-card,
.side-panel,
.cta-panel,
.admin-card,
.media-grid > *,
.application-portals-grid > *,
.applications-grid > *,
.detail-page-shell > *,
.chain-grid > *,
.footer-row > * {
  opacity: 0;
  animation: riseIn 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand {
  animation-delay: 60ms;
}

.site-nav {
  animation-delay: 120ms;
}

.header-cta {
  animation-delay: 180ms;
}

.hero-copy > *:nth-child(1),
.page-hero-copy > *:nth-child(1),
.section-heading > *:nth-child(1) {
  animation-delay: 140ms;
}

.hero-copy > *:nth-child(2),
.page-hero-copy > *:nth-child(2),
.section-heading > *:nth-child(2) {
  animation-delay: 220ms;
}

.hero-copy > *:nth-child(3),
.page-hero-copy > *:nth-child(3),
.section-heading > *:nth-child(3) {
  animation-delay: 300ms;
}

.hero-copy > *:nth-child(4),
.page-hero-copy > *:nth-child(4) {
  animation-delay: 380ms;
}

.hero-copy > *:nth-child(5),
.page-hero-copy > *:nth-child(5) {
  animation-delay: 460ms;
}

.page-hero-side > * {
  animation-delay: 320ms;
}

.hero-visual {
  animation-delay: 260ms;
}

.hero-stats > *:nth-child(1),
.card-grid > *:nth-child(1),
.detail-grid > *:nth-child(1),
.media-grid > *:nth-child(1),
.application-portals-grid > *:nth-child(1),
.applications-grid > *:nth-child(1),
.chain-grid > *:nth-child(1),
.detail-page-shell > *:nth-child(1),
.footer-row > *:nth-child(1) {
  animation-delay: 120ms;
}

.hero-stats > *:nth-child(2),
.card-grid > *:nth-child(2),
.detail-grid > *:nth-child(2),
.media-grid > *:nth-child(2),
.application-portals-grid > *:nth-child(2),
.applications-grid > *:nth-child(2),
.chain-grid > *:nth-child(2),
.detail-page-shell > *:nth-child(2),
.footer-row > *:nth-child(2) {
  animation-delay: 190ms;
}

.hero-stats > *:nth-child(3),
.card-grid > *:nth-child(3),
.media-grid > *:nth-child(3),
.application-portals-grid > *:nth-child(3),
.applications-grid > *:nth-child(3),
.chain-grid > *:nth-child(3) {
  animation-delay: 260ms;
}

.card-grid > *:nth-child(4),
.media-grid > *:nth-child(4),
.application-portals-grid > *:nth-child(4),
.applications-grid > *:nth-child(4),
.chain-grid > *:nth-child(4) {
  animation-delay: 330ms;
}

.card-grid > *:nth-child(5),
.media-grid > *:nth-child(5),
.application-portals-grid > *:nth-child(5),
.applications-grid > *:nth-child(5),
.chain-grid > *:nth-child(5) {
  animation-delay: 400ms;
}

.card-grid > *:nth-child(6),
.media-grid > *:nth-child(6),
.application-portals-grid > *:nth-child(6),
.applications-grid > *:nth-child(6),
.chain-grid > *:nth-child(6) {
  animation-delay: 470ms;
}

.rule-card:nth-child(1),
.department-card:nth-child(1),
.side-panel:nth-child(1),
.cta-panel:nth-child(1),
.admin-card:nth-child(1) {
  animation-delay: 140ms;
}

.rule-card:nth-child(2),
.department-card:nth-child(2) {
  animation-delay: 220ms;
}

.rule-card:nth-child(3),
.department-card:nth-child(3) {
  animation-delay: 300ms;
}

.rule-card:nth-child(4),
.department-card:nth-child(4) {
  animation-delay: 380ms;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 14px, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .page-hero-grid,
  .card-grid-three,
  .card-grid-two,
  .detail-grid,
  .cta-panel,
  .media-grid,
  .application-portals-grid,
  .applications-grid,
  .chain-grid {
    grid-template-columns: 1fr;
  }

  .detail-page-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 640px;
  }

  .header-row {
    justify-content: flex-start;
    padding: 16px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-row,
  .footer-row,
  .cta-panel {
    align-items: flex-start;
  }

  .media-form {
    grid-template-columns: 1fr;
  }

  .question-editor-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 118px;
  }

  .site-nav {
    gap: 4px;
    padding: 6px;
  }

  .site-nav a {
    padding: 9px 12px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-visual {
    min-height: 580px;
    border-radius: 28px;
  }

  .hero-brand-panel {
    left: 18px;
    right: 18px;
    top: 18px;
    padding: 18px;
  }

  .hero-brand-panel img {
    width: min(100%, 180px);
  }

  .hero-panel-right {
    top: 242px;
    right: 18px;
  }

  .hero-panel-left {
    left: 18px;
    bottom: 18px;
  }

  .hero-wall-text {
    right: -16px;
    font-size: 6.3rem;
  }

  .hero-wall-text-top {
    top: 108px;
  }

  .hero-wall-text-bottom {
    bottom: 102px;
  }

  .cta-panel {
    padding: 24px;
  }

  .application-portal-card,
  .detail-page-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .application-portal-side {
    justify-items: start;
    text-align: left;
  }

  .application-portal-actions {
    justify-content: flex-start;
  }

  .application-card-top {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .brand,
  .site-nav,
  .header-cta,
  .hero-copy > *,
  .page-hero-copy > *,
  .page-hero-side > *,
  .hero-visual,
  .hero-stats > *,
  .section-heading > *,
  .card-grid > *,
  .detail-grid > *,
  .rule-card,
  .department-card,
  .side-panel,
  .cta-panel,
  .admin-card,
  .media-grid > *,
  .application-portals-grid > *,
  .applications-grid > *,
  .detail-page-shell > *,
  .chain-grid > *,
  .footer-row > * {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
