:root {
  --page: #d8d8d5;
  --page-soft: #343638;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(13, 16, 16, 0.13);
  --gold: #aa751d;
  --gold-bright: #c28a24;
  --footer: #111616;
  --footer-text: #f3efe8;
  --card: #9b9b96;
  --card-dark: #171a1a;
  --site-scale: 1;
  --site-fit-left: 0px;
  --site-fit-top: 0px;
  --site-fit-height: auto;
  --footer-width: 100%;
  --footer-left: 0px;
  --social-left: 0px;
  --social-width: 100%;
  --nav-shift: 0px;
  --menu-item-gap: 72px;
  --menu-left: auto;
  --menu-width: auto;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--footer);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #0d1010;
  background:
    linear-gradient(
      180deg,
      #233342 0%,
      #2f414f 22%,
      #475c68 46%,
      #75858d 68%,
      #b7c1c6 86%,
      #e7ecef 100%
    );
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 20% 18%, rgba(198, 225, 235, 0.1), transparent 30%),
    radial-gradient(ellipse at 78% 38%, rgba(8, 25, 38, 0.58), transparent 34%),
    linear-gradient(115deg, transparent 18%, rgba(54, 88, 103, 0.2) 34%, rgba(7, 22, 34, 0.42) 52%, transparent 68%);
  background-size: 120% 120%, 140% 140%, 180% 180%;
  filter: blur(28px);
  opacity: 0.86;
  will-change: background-position;
  animation: background-wave 16s ease-in-out infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"),
    rgba(231, 236, 239, 0.08);
  background-size: 180px 180px, auto;
  opacity: 0.55;
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
}

@keyframes background-wave {
  0% {
    background-position: 0% 0%, 100% 20%, 0% 50%;
  }

  25% {
    background-position: 55% 18%, 42% 78%, 35% 10%;
  }

  50% {
    background-position: 92% 72%, 18% 44%, 100% 70%;
  }

  75% {
    background-position: 28% 88%, 82% 12%, 48% 100%;
  }

  100% {
    background-position: 0% 0%, 100% 20%, 0% 50%;
  }
}

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

button,
input {
  font: inherit;
}

.site-fit {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  transform-origin: top center;
}

@media (min-width: 1240px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .site-fit {
    position: fixed;
    top: var(--site-fit-top);
    left: var(--site-fit-left);
    width: 1580px;
    height: var(--site-fit-height);
    min-height: auto;
    transform: scale(var(--site-scale));
    transform-origin: top left;
  }
}

.site-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(calc(100% - 2px), 1580px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  min-height: 132px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  --brand-logo-width: 102px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  transform: translateX(-86px);
}

.brand-logo {
  width: var(--brand-logo-width);
  height: auto;
  flex: 0 0 auto;
  filter: hue-rotate(-12deg) saturate(0.78) brightness(0.88);
}

.brand-title {
  width: calc(var(--brand-logo-width) * 2.35);
  height: auto;
  flex: 0 1 auto;
  filter: invert(1);
}

.menu-cluster {
  position: absolute;
  top: 50%;
  left: var(--menu-left);
  display: flex;
  align-items: center;
  width: var(--menu-width);
  transform: translateY(calc(-50% - 8px));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}

.main-nav > a:not(.button) {
  position: relative;
  padding: 20px 0;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 180ms ease;
}

.main-nav > a:not(.button):is(:hover, :focus-visible)::after,
.main-nav > a:not(.button).is-active::after {
  width: 100%;
}

.main-nav > a.is-disabled {
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transform: translateX(-10px);
}

.main-nav > a.is-disabled::after {
  display: none;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 38px;
  height: 2px;
  background: #fff;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.button > span {
  position: relative;
  z-index: 1;
}

.button-dark {
  min-width: 174px;
  padding: 0 28px 0 32px;
  color: #fff;
  background: var(--footer);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.button-dark::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms ease;
}

.button-dark:is(:hover, :focus-visible)::before {
  transform: scaleX(1);
}

.button-dark:is(:hover, :focus-visible) {
  background: var(--footer);
}

.arrow {
  display: inline-block;
  width: 28px;
  height: 19px;
  flex: 0 0 auto;
  background: url("arrow.png") center / contain no-repeat;
  transition: filter 620ms ease 90ms;
}

.button-dark:is(:hover, :focus-visible) .arrow {
  filter: brightness(0) invert(1);
}

.hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 0 0 44px;
}

.hero-copy {
  --hero-copy-width: 380px;
  width: var(--hero-copy-width);
  padding: 6px 0 26px;
  transform: translate(-86px, 0);
}

h1,
h2,
p {
  margin-top: 0;
}

.hero-slogan {
  width: 520px;
  max-width: none;
  margin-bottom: 38px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.64;
  text-align: left;
  text-wrap: balance;
}

.accent-word {
  color: var(--gold-bright);
}

.rule {
  width: 48px;
  height: 2px;
  margin-bottom: 42px;
  background: var(--gold);
}

.hero-text {
  width: 420px;
  max-width: none;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2.05;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 38px;
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 450px));
  gap: 22px;
  justify-content: end;
  transform: translate(96px, 0);
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 580px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(145deg, #b8b7b1, #7d7d79);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.34),
    inset 0 0 24px rgba(255, 255, 255, 0.08),
    inset 0 0 54px rgba(231, 236, 239, 0.05);
}

.feature-card:first-child {
  z-index: 5;
  overflow: visible;
}

.feature-card:first-child.is-animated {
  z-index: 30;
}

.feature-card::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%, rgba(13, 16, 16, 0.36) 68%, rgba(4, 5, 5, 0.99) 100%);
}

.feature-card::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  content: "";
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.18);
  filter: drop-shadow(0 0 18px rgba(231, 236, 239, 0.12));
  pointer-events: none;
}

.feature-card:first-child.is-animated .teryon-art,
.feature-card:first-child.is-animated .teryon-popout-art,
.feature-card:first-child.is-animated .teryon-elf-clip {
  z-index: 5;
}

.feature-card:first-child.is-animated::before {
  z-index: 6;
}

.feature-card.is-animated .feature-content {
  z-index: 7;
  transform: translateY(-28px);
}

.feature-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-8%) scale(1.22);
  transform-origin: center;
}

.feature-image.feature-demo,
.feature-image.feature-demo-poster {
  object-fit: cover;
  object-position: center top;
  background: #101410;
  transform: none;
}

.feature-image.feature-demo {
  opacity: 0;
  transition: opacity 900ms ease;
}

.feature-image.feature-demo.is-playing {
  opacity: 1;
}

.teryon-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.teryon-elf-clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.teryon-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  transform: translateY(-8%) scale(1.22);
  transform-origin: center;
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-5%);
}

.teryon-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(15.6% 9.1% 2.5% 9.1%);
  pointer-events: none;
  transform: translateY(-8%) scale(1.22);
  transform-origin: center;
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-layer {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.teryon-popout-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-8%) scale(1.22);
  transform-origin: center;
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:first-child.is-animated .teryon-scene,
.feature-card:first-child.is-animated .teryon-art,
.feature-card:first-child.is-animated .teryon-popout-art {
  transform: translateY(-10%) scale(1.22);
  transition: transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-layer-logo {
  top: 9%;
  left: 50%;
  width: 64%;
  transform: translateX(-50%);
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-popout-logo {
  clip-path: inset(0);
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:first-child.is-animated .teryon-layer-logo {
  transform: translateX(-50%) translateY(5px);
  transition: transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:first-child.is-animated .teryon-popout-logo {
  opacity: 1;
  transition:
    opacity 900ms ease,
    transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-layer-lokian {
  left: -19%;
  bottom: 3%;
  width: 66%;
  transform: translateX(0);
  transition:
    opacity 520ms ease,
    transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-popout-lokian {
  clip-path: inset(0 48% 0 0);
  opacity: 0;
}

.feature-card:first-child.is-animated .teryon-layer-lokian {
  transform: translateX(-18px);
  transition:
    opacity 900ms ease,
    transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:first-child.is-animated .teryon-popout-lokian {
  opacity: 1;
}

.teryon-layer-alrian {
  right: -10%;
  bottom: 10%;
  width: 64%;
  transform: translateX(0);
  transition:
    opacity 520ms ease,
    transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teryon-popout-alrian {
  clip-path: inset(0 -1px 0 58%);
  opacity: 0;
}

.feature-card:first-child.is-animated .teryon-layer-alrian {
  transform: translateX(18px);
  transition:
    opacity 900ms ease,
    transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:first-child.is-animated .teryon-popout-alrian {
  opacity: 1;
}

.teryon-layer-elf {
  left: 46%;
  bottom: -9.5%;
  z-index: 6;
  width: 54%;
  transform: translateX(-50%);
}

.feature-content {
  position: relative;
  z-index: 5;
  align-self: flex-end;
  display: grid;
  grid-template-rows: auto 2px auto;
  row-gap: 16px;
  width: 100%;
  min-height: 132px;
  padding: 0 20px 24px;
  color: #fff;
  transition: transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card .feature-content {
  transform: translateY(0);
}

.feature-card.is-animated .feature-content {
  transition: transform 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-cta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  padding: 0 22px;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  color: #fff;
  background: #9a6819;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: none;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.feature-card.is-animated .feature-cta {
  opacity: 1;
  transition: opacity 900ms ease;
}

.feature-cta[href] {
  pointer-events: auto;
  text-decoration: none;
}

.feature-content h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.mini-rule {
  width: 42px;
  height: 2px;
  margin-bottom: 0;
  background: var(--gold-bright);
}

.feature-content p {
  max-width: none;
  min-height: 2.68em;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.34;
}

.feature-description-line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.social-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--social-width);
  margin: auto 0 12px var(--social-left);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 54px rgba(7, 22, 34, 0.18);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.social-strip a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82px;
  overflow: hidden;
  padding: 16px;
}

.social-strip a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: #515e65;
  opacity: 0;
  transition: opacity 760ms ease;
}

.social-strip a:is(:hover, :focus-visible)::before {
  opacity: 1;
}

.social-strip a + a {
  border-left: 1px solid var(--line);
}

.social-strip a:nth-child(3) {
  border-left: 1px solid var(--line);
  border-top: 0;
}

.social-strip a:nth-child(4) {
  border-top: 0;
}

.social-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) saturate(1) invert(6%) sepia(11%) saturate(771%) hue-rotate(131deg) brightness(93%) contrast(91%);
  transition: opacity 760ms ease;
}

.social-strip a:is(:hover, :focus-visible) .social-icon {
  opacity: 0;
}

.social-strip a::after {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  content: "";
  background: var(--social-icon-src) center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0;
  transition: opacity 760ms ease;
}

.social-strip a:is(:hover, :focus-visible)::after {
  opacity: 1;
}

.social-strip a:nth-child(1) {
  --social-icon-src: url("facebook.png");
}

.social-strip a:nth-child(2) {
  --social-icon-src: url("x.png");
}

.social-strip a:nth-child(3) {
  --social-icon-src: url("insta.png");
}

.social-strip a:nth-child(4) {
  --social-icon-src: url("discord.png");
}

.site-footer {
  width: var(--footer-width);
  margin-left: var(--footer-left);
  flex-shrink: 0;
  background: var(--footer);
  color: var(--footer-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  width: var(--social-width);
  max-width: none;
  min-height: 205px;
  margin: 0 0 0 calc(var(--social-left) - var(--footer-left));
  padding: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-column:not(.newsletter) {
  align-items: center;
  padding-left: 0;
}

.footer-column:not(.newsletter) > * {
  width: 150px;
  text-align: left;
}

.footer-column h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(243, 239, 232, 0.66);
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.newsletter p {
  max-width: 340px;
  margin: 0;
  color: rgba(243, 239, 232, 0.64);
  font-size: 16px;
  line-height: 1.45;
}

.newsletter form {
  position: relative;
  width: min(320px, 100%);
  margin-top: 18px;
}

.newsletter input {
  width: 100%;
  height: 54px;
  padding: 0 62px 0 22px;
  border: 1px solid rgba(243, 239, 232, 0.22);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter button {
  position: absolute;
  top: 50%;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

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

@media (max-width: 1239px) {
  .site-shell,
  .footer-inner {
    width: min(calc(100% - 64px), 1264px);
  }

  .site-shell {
    padding-top: 8px;
  }

  .site-header {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 34px;
    min-height: 90px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    --brand-logo-width: 68px;
    gap: 14px;
    transform: none;
  }

  .menu-cluster {
    position: static;
    display: flex;
    width: 100%;
    transform: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 620px);
    margin-left: auto;
    font-size: 13px;
  }

  .main-nav > a:not(.button) {
    padding: 15px 0;
    text-align: left;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
    justify-items: start;
    padding-bottom: 34px;
  }

  .hero-copy {
    --hero-copy-width: 285px;
    width: var(--hero-copy-width);
    max-width: none;
    padding: 5px 0 20px;
    justify-self: start;
    transform: none;
  }

  .hero-slogan {
    width: 390px;
    max-width: none;
    margin-bottom: 29px;
    font-size: 27px;
    text-align: left;
  }

  .rule {
    width: 36px;
    margin-bottom: 32px;
  }

  .hero-text {
    width: 315px;
    max-width: none;
    margin-bottom: 38px;
    font-size: 13px;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    min-height: 45px;
    border-radius: 6px;
    font-size: 12px;
  }

  .button-dark {
    min-width: 131px;
    padding: 0 21px 0 24px;
  }

  .arrow {
    width: 21px;
    height: 14px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 412px));
    gap: 14px;
    justify-content: center;
    width: 100%;
    max-width: 1264px;
    justify-self: center;
    margin-top: 28px;
    transform: none;
  }

  .feature-card {
    aspect-ratio: 416 / 640;
    width: 100%;
    max-width: 412px;
    min-height: 0;
    container-type: inline-size;
    justify-self: center;
  }

  .feature-card:first-child.is-animated .teryon-layer-logo {
    transform: translateX(-50%) translateY(min(5px, 1.2cqw));
  }

  .feature-card:first-child.is-animated .teryon-layer-lokian {
    transform: translateX(max(-18px, -4.33cqw));
  }

  .feature-card:first-child.is-animated .teryon-layer-alrian {
    transform: translateX(min(18px, 4.33cqw));
  }

  .feature-card.is-animated .feature-content {
    transform: translateY(max(-28px, -6.73cqw));
  }

  .feature-content {
    row-gap: min(16px, 3.85cqw);
    min-height: min(132px, 31.73cqw);
    padding: 0 min(20px, 4.81cqw) min(24px, 5.77cqw);
  }

  .feature-cta {
    min-height: min(28px, 6.73cqw);
    padding: 0 min(22px, 5.29cqw);
    border-radius: 0 0 min(16px, 3.85cqw) min(16px, 3.85cqw);
    font-size: min(15px, 3.61cqw);
  }

  .feature-content h2 {
    font-size: min(26px, 6.25cqw);
  }

  .mini-rule {
    width: min(42px, 10.1cqw);
  }

  .feature-content p {
    font-size: min(16px, 3.85cqw);
  }

  .social-strip {
    width: 100%;
    margin: auto 0 12px;
    transform: none;
  }

  .site-footer {
    width: 100%;
    margin-left: 0;
  }

  .footer-inner {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 24px 42px;
    justify-items: center;
  }

  .footer-spacer {
    display: none;
  }

  .footer-column {
    width: min(100%, 360px);
    align-items: center;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .footer-column:not(.newsletter) > *,
  .newsletter p,
  .newsletter form {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    padding: 20px 18px 0;
  }

  .site-header {
    grid-template-columns: auto auto;
    column-gap: 24px;
    justify-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 88px;
  }

  .brand {
    --brand-logo-width: 108px;
    gap: 16px;
    grid-column: 2;
    grid-row: 1;
    transform: none;
  }

  .menu-toggle {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1;
  }

  .menu-cluster {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 20;
    display: block;
    width: min(460px, calc(100vw - 48px));
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(35, 51, 66, 0.72);
    box-shadow: 0 28px 60px rgba(7, 22, 34, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    transition:
      opacity 220ms ease,
      transform 320ms ease;
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
  }

  .site-header.is-menu-open .menu-cluster {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scaleY(1);
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    color: #fff;
  }

  .main-nav > a:not(.button) {
    padding: 12px 8px;
    text-align: center;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    gap: clamp(54px, 8vw, 82px);
    align-items: center;
    justify-items: center;
    padding-top: clamp(28px, 5vw, 46px);
  }

  .hero-copy,
  .hero-slogan,
  .hero-text,
  .hero-actions {
    width: 100%;
  }

  .hero-copy {
    display: flex;
    width: 100%;
    max-width: 520px;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    padding-bottom: 0;
    transform: none;
  }

  .hero-slogan,
  .hero-text {
    text-align: center;
  }

  .rule {
    align-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    width: min(100%, 416px);
    margin-left: 0;
    transform: none;
  }

  .feature-card {
    width: 100%;
  }

  .social-strip {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: auto 0 12px;
    transform: none;
  }

  .social-strip a:nth-child(3) {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .social-strip a:nth-child(4) {
    border-top: 0;
  }

  .footer-inner {
    width: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 24px 42px;
    justify-items: center;
  }

  .footer-spacer {
    display: none;
  }

  .footer-column {
    width: min(100%, 360px);
    align-items: center;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .newsletter {
    order: 1;
  }

  .footer-column[aria-label="Explore"] {
    order: 2;
  }

  .footer-column[aria-label="Resources"] {
    order: 3;
  }

  .footer-column:not(.newsletter) > *,
  .newsletter p,
  .newsletter form {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }
}

@media (min-width: 821px) and (max-width: 1239px) {
  :root {
    --narrow-card-width: clamp(145px, 20vw, 255px);
    --narrow-card-gap: clamp(8px, 1.2vw, 14px);
    --narrow-card-row-width: calc((3 * var(--narrow-card-width)) + (2 * var(--narrow-card-gap)));
  }

  .brand {
    --brand-logo-width: 64px;
    gap: 13px;
  }

  .main-nav {
    width: var(--narrow-card-row-width);
    font-size: 10.5px;
  }

  .hero {
    grid-template-columns: clamp(150px, 22vw, 285px) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 44px);
    align-items: center;
    justify-items: start;
    padding-top: clamp(4px, 1.2vw, 16px);
  }

  .hero-copy {
    display: block;
    width: clamp(150px, 22vw, 260px);
    max-width: none;
    padding: 0 0 clamp(12px, 2vw, 20px);
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: repeat(3, var(--narrow-card-width));
    gap: var(--narrow-card-gap);
    justify-content: end;
    justify-self: end;
    margin-top: 0;
  }

  .feature-card {
    width: var(--narrow-card-width);
    max-width: var(--narrow-card-width);
  }

  .social-strip {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .social-strip a {
    min-height: clamp(40px, 4.5vw, 52px);
    padding: clamp(7px, 0.8vw, 10px);
  }

  .social-icon,
  .social-strip a::after {
    width: clamp(22px, 2.5vw, 28px);
    height: clamp(22px, 2.5vw, 28px);
  }

  .hero-slogan {
    width: clamp(210px, 30vw, 410px);
    margin-bottom: clamp(12px, 2vw, 28px);
    font-size: clamp(15px, 2.05vw, 24px);
    line-height: 1.64;
    text-align: left;
  }

  .rule {
    width: clamp(24px, 3.2vw, 38px);
    height: 2px;
    margin: 0 0 clamp(12px, 2vw, 28px);
  }

  .hero-text {
    width: clamp(180px, 27vw, 320px);
    margin-bottom: clamp(14px, 2.2vw, 32px);
    font-size: clamp(8.5px, 1.1vw, 12px);
    line-height: 2.05;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-actions .button {
    min-height: clamp(26px, 3.4vw, 40px);
    border-radius: 6px;
    font-size: clamp(7.5px, 0.95vw, 11px);
    gap: clamp(7px, 1.2vw, 15px);
  }

  .hero-actions .button-dark {
    min-width: clamp(78px, 10.5vw, 118px);
    padding: 0 clamp(9px, 1.5vw, 18px) 0 clamp(11px, 1.7vw, 20px);
  }

  .hero-actions .arrow {
    width: clamp(11px, 1.7vw, 18px);
    height: clamp(8px, 1.2vw, 12px);
  }
}

@media (min-width: 821px) and (max-width: 1239px) {
  .footer-inner {
    width: min(calc(100% - 64px), 1264px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    min-height: 178px;
    margin: 0 auto;
    padding: 0;
    justify-items: stretch;
  }

  .footer-spacer {
    display: block;
  }

  .footer-column {
    width: auto;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
  }

  .footer-column:not(.newsletter) {
    align-items: center;
    padding-left: 0;
  }

  .footer-column:not(.newsletter) > * {
    width: 120px;
    max-width: none;
    text-align: left;
  }

  .footer-column h2 {
    margin-bottom: 2px;
    font-size: 9.5px;
  }

  .footer-column a {
    font-size: 10.5px;
  }

  .newsletter p,
  .newsletter form {
    width: min(260px, 100%);
    max-width: 280px;
    text-align: left;
  }

  .newsletter p {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .newsletter form {
    margin-top: 12px;
  }

  .newsletter input {
    height: 42px;
    padding: 0 48px 0 18px;
    font-size: 10.5px;
  }

  .newsletter button {
    right: 14px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand-title {
    width: calc(var(--brand-logo-width) * 1.55);
  }

  .button {
    width: 100%;
  }

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

  .social-strip a {
    place-items: center;
    min-height: 68px;
    padding: 12px;
  }

  .social-strip a + a,
  .social-strip a:nth-child(3),
  .social-strip a:nth-child(4) {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .social-strip a:first-child {
    border-left: 0;
  }
}

