@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12202f;
  --night: #071815;
  --evergreen: #0f3b33;
  --teal: #35c3b0;
  --mint: #a7e8d3;
  --copper: #d98f45;
  --cream: #fffaf0;
  --muted: rgb(255 250 240 / 72%);
  --line: rgb(255 255 255 / 16%);
  --font-sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color: var(--cream);
  background: var(--night);
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--night);
}

body {
  overflow-x: hidden;
}

.cms-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: linear-gradient(115deg, rgb(7 24 21 / 94%) 0%, rgb(18 32 47 / 86%) 52%, rgb(15 59 51 / 92%) 100%);
}

.cms-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 60%), transparent 80%);
}

.cms-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 58px;
}

.cms-theme-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cms-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
}

.cms-brand strong {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.cms-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
}

.cms-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: var(--mint);
  background: rgb(0 0 0 / 16%);
  font-size: 14px;
}

.cms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.cms-site-header,
.cms-site-footer {
  position: relative;
  z-index: 2;
  color: var(--cream);
  background: rgb(7 24 21 / 94%);
}

.cms-site-header {
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 14px 42px rgb(0 0 0 / 20%);
}

.cms-site-header .cms-theme-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
}

.cms-site-brand,
.cms-site-nav,
.cms-site-actions,
.cms-footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cms-site-brand {
  color: var(--cream);
  font-weight: 900;
  text-decoration: none;
}

.cms-site-nav {
  justify-content: center;
}

.cms-site-nav a,
.cms-footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cms-site-nav a:hover,
.cms-footer-nav a:hover {
  color: var(--mint);
}

.cms-site-actions {
  justify-content: flex-end;
}

.cms-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgb(167 232 211 / 42%);
  border-radius: 8px;
  color: #061411;
  background: var(--mint);
  font-weight: 900;
  text-decoration: none;
}

.cms-header-centered .cms-theme-shell {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  padding: 16px 0;
}

.cms-site-footer {
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.cms-site-footer .cms-theme-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.cms-site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cms-built-theme-part {
  position: relative;
  z-index: 3;
  min-height: var(--theme-part-height, 96px);
  color: var(--cream);
  background: rgb(7 24 21 / 96%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  overflow: hidden;
}

.cms-theme-builder-canvas {
  position: relative;
  min-height: var(--theme-part-height, 96px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cms-theme-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  align-items: center;
}

.cms-theme-item.type-menu .cms-site-nav,
.cms-theme-item.type-button .cms-header-cta,
.cms-theme-item.type-logo .cms-site-brand {
  width: 100%;
}

.cms-theme-item.type-button .cms-header-cta {
  height: 100%;
}

.cms-theme-item.type-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cms-theme-item.type-text span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  color: var(--mint);
  background: rgb(0 0 0 / 16%);
  font-size: 14px;
  font-weight: 800;
}

.cms-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.cms-section.narrow {
  max-width: 820px;
}

.cms-section.medium {
  max-width: 980px;
}

.cms-section.wide {
  max-width: 1180px;
}

.cms-section.full {
  max-width: none;
}

.cms-align-left {
  margin-left: 0;
  margin-right: auto;
}

.cms-align-center {
  margin-left: auto;
  margin-right: auto;
}

.cms-align-right {
  margin-left: auto;
  margin-right: 0;
}

.cms-hero {
  padding: 76px 0 30px;
}

.cms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.cms-eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--copper);
}

.cms-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 9vw, 108px);
  line-height: .94;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.cms-hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #061411;
  background: var(--mint);
  font-weight: 800;
  text-decoration: none;
}

.cms-button.secondary {
  border-color: rgb(255 255 255 / 18%);
  color: var(--cream);
  background: rgb(255 255 255 / 7%);
}

.cms-kpis,
.cms-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.cms-kpi,
.cms-card,
.cms-cta {
  border-radius: 8px;
  background: rgb(7 24 21 / 64%);
}

.cms-kpi {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
}

.cms-kpi strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.cms-kpi span,
.cms-card span,
.cms-cta p {
  color: var(--muted);
  line-height: 1.45;
}

.cms-card {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 92px;
  padding: 16px;
  border-left: 3px solid var(--teal);
  background: rgb(255 255 255 / 7%);
}

.cms-card:nth-child(2) {
  border-left-color: var(--copper);
}

.cms-card:nth-child(3) {
  border-left-color: var(--mint);
}

.cms-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 250 240 / 8%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 12%);
}

.cms-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 18px 0;
}

.cms-panel h2 {
  margin: 0;
  font-size: 15px;
}

.cms-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #081a16;
  background: var(--copper);
  font-size: 12px;
  font-weight: 800;
}

.cms-chart {
  height: 250px;
  padding: 18px;
}

.cms-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cms-grid-line {
  stroke: rgb(255 255 255 / 11%);
  stroke-width: 1;
}

.cms-chart-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cms-chart-line.alt {
  stroke: var(--copper);
  stroke-width: 3;
}

.cms-chart-area {
  fill: rgb(53 195 176 / 16%);
}

.cms-chart-line {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
}

.cms-panel.is-visible .cms-chart-line {
  animation: cms-draw 1.8s ease-out forwards;
}

.cms-panel.is-visible .cms-chart-line.alt {
  animation-delay: .18s;
}

@keyframes cms-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.cms-cta {
  padding: 28px;
  border: 1px solid var(--line);
}

.cms-cta h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
}

.cms-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(0 0 0 / 18%);
}

.cms-media figure {
  margin: 0;
}

.cms-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--media-ratio, 16 / 9);
  object-fit: cover;
}

.cms-caption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.cms-row {
  position: relative;
  min-height: var(--row-height, 460px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 3%));
}

.cms-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cms-row-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  min-height: max(44px, var(--h));
}

.cms-row-item.overflow-clip {
  height: var(--h);
  overflow: hidden;
}

.cms-row-item.overflow-scroll {
  height: var(--h);
  overflow: auto;
}

.cms-row-item.overflow-grow {
  height: auto;
  overflow: visible;
}

.cms-row-card,
.cms-row-form {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(7 24 21 / 82%);
}

.cms-row-item.overflow-clip .cms-row-card,
.cms-row-item.overflow-scroll .cms-row-card,
.cms-row-item.overflow-clip .cms-row-form,
.cms-row-item.overflow-scroll .cms-row-form {
  height: 100%;
}

.cms-row-card h3,
.cms-row-form h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cms-row-card p,
.cms-row-form p {
  margin: 0;
  color: inherit;
  line-height: 1.45;
}

.cms-rich-text {
  line-height: 1.45;
}

.cms-rich-text p,
.cms-rich-text ul,
.cms-rich-text ol {
  margin: 0 0 10px;
}

.cms-rich-text p:last-child,
.cms-rich-text ul:last-child,
.cms-rich-text ol:last-child {
  margin-bottom: 0;
}

.cms-rich-text ul,
.cms-rich-text ol {
  padding-left: 22px;
}

.cms-row-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cms-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border-radius: 8px;
  color: #061411;
  background: var(--mint);
  font-weight: 800;
  text-decoration: none;
}

.cms-row-card[style],
.cms-row-form[style] {
  color: inherit;
}

@media (max-width: 860px) {
  .cms-shell {
    width: min(calc(100% - 28px), 680px);
    padding: 36px 0;
  }

  .cms-theme-shell {
    width: min(calc(100% - 28px), 680px);
  }

  .cms-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-site-header .cms-theme-shell,
  .cms-site-footer .cms-theme-shell {
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 0;
  }

  .cms-site-nav,
  .cms-site-actions,
  .cms-footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .cms-site-footer .cms-theme-shell {
    display: grid;
  }

  .cms-theme-builder-canvas {
    display: grid;
    gap: 12px;
    padding: 14px 0;
  }

  .cms-theme-item {
    position: static;
    width: 100%;
    height: auto;
    min-height: 34px;
  }

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

  .cms-hero {
    padding-top: 46px;
  }
}
