.home-mode {
  margin: 0;
  min-height: 100%;
  overflow-y: auto;
}

.home-mode-root {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-mode::-webkit-scrollbar,
.home-mode-root::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-page {
  position: relative;
}

.home-hero {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
}

.home-rock-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home-ascii-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-ascii-layer.is-active {
  opacity: 1;
}

.home-ascii-layer canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.home-ascii-layer pre {
  margin: 0;
  padding: 0;
  line-height: 1em;
  text-align: left;
  position: absolute;
  left: 0;
  top: 0;
  background-image: radial-gradient(circle, #ff6188 0%, #fc9867 50%, #ffd866 100%);
  background-attachment: fixed;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  z-index: 9;
  mix-blend-mode: multiply;
}

.home-tooltip-smaug {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  display: grid;
  place-items: center;
}

.home-tooltip-smaug.is-active {
  opacity: 1;
}

.home-tooltip-smaug-base {
  position: relative;
  bottom: -0.9em;
  width: max-content;
  max-width: min(600px, calc(100vw - 20px));
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transform-origin: 50% 100%;
  padding: 8px 16px;
  border-radius: 999px;
  background: #141514;
  z-index: 2;
  opacity: 0;
  box-sizing: border-box;
}

.home-tooltip-smaug-base::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 20px;
  height: 20px;
  background: #141514;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
  z-index: -1;
}

.home-tooltip-smaug-content {
  color: #f2efe7;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 8px 16px;
  margin: 0;
  opacity: 0;
  font-size: 0.85em;
  text-align: center;
  font-family: "Overpass Mono", "IBM Plex Mono", "Courier Prime", monospace;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.home-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.home-mode.home-menu-open .home-brand {
  opacity: 0;
}

.home-brand-name {
  color: var(--background-color);
  font-family: "IBM Plex Mono", "Courier Prime", monospace;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.home-brand .mal-logo {
  width: 34px;
  height: 34px;
  color: var(--background-color);
}

.home-brand .mal-logo .mal-logo-cap,
.home-brand .mal-logo .mal-logo-cap-base,
.home-brand .mal-logo .mal-logo-cap-top-inner {
  stroke: var(--background-color);
  opacity: 1;
}

.home-brand .mal-logo .mal-logo-dot {
  fill: var(--background-color);
}

.home-quadrant-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.home-quadrant {
  position: relative;
  padding: clamp(18px, 2.2vw, 36px);
  display: flex;
}

.home-quadrant-meet {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.home-quadrant-portfolio {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: right;
}

.home-quadrant-products {
  justify-content: flex-start;
  align-items: flex-end;
  text-align: left;
}

.home-quadrant-tools {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}

.home-nav-link,
.home-submenu-link {
  text-transform: lowercase;
}

.home-nav-link {
  color: rgba(0, 0, 0, 0.9);
  font-family: "IBM Plex Mono", "Courier Prime", monospace;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-decoration: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  background-repeat: no-repeat;
  background-size: 0% 0.72em;
  background-position: 0 88%;
  transition: background-size 150ms ease;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
  background-size: 100% 0.72em;
}

.home-menu {
  flex-direction: column;
  justify-content: flex-end;
  height: fit-content;
  align-self: end;
}

.home-menu--left {
  align-items: flex-start;
  text-align: left;
}

.home-menu--right {
  align-items: flex-end;
  text-align: right;
}

.home-menu-trigger {
  display: inline-block;
  border: 0;
  margin: 0;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  text-align: inherit;
  background-image: none;
  background-size: 0 0;
  transition: none;
}

.home-menu-trigger:hover,
.home-menu-trigger:focus-visible {
  background-size: 0 0;
}

.home-link-text {
  background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  background-repeat: no-repeat;
  background-size: 0% 0.72em;
  background-position: 0 88%;
  transition: background-size 150ms ease;
}

.home-menu-trigger:hover .home-link-text,
.home-menu-trigger:focus-visible .home-link-text {
  background-size: 100% 0.72em;
}

.home-submenu {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-menu .home-menu-trigger {
  order: 2;
  margin-top: auto;
}

.home-menu--left .home-menu-trigger {
  align-self: flex-start;
}

.home-menu--right .home-menu-trigger {
  align-self: flex-end;
}

.home-menu .home-submenu {
  order: 1;
  margin-top: 0;
  margin-bottom: 12px;
}

.home-menu--left .home-submenu {
  justify-items: start;
  text-align: left;
}

.home-menu--right .home-submenu {
  justify-items: end;
  text-align: right;
}

.home-submenu-link {
  color: rgba(0, 0, 0, 0.9);
  font-family: "IBM Plex Mono", "Courier Prime", monospace;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22));
  background-repeat: no-repeat;
  background-size: 0% 0.72em;
  background-position: 0 88%;
  transition: background-size 150ms ease;
}

.home-submenu-link:hover,
.home-submenu-link:focus-visible {
  background-size: 100% 0.72em;
}

.home-menu.is-open .home-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-scroll-runway {
  position: relative;
  z-index: 1;
  min-height: 320vh;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .home-nav-link {
    font-size: clamp(16px, 3.2vw, 26px);
  }

  .home-submenu-link {
    font-size: clamp(12px, 2.3vw, 15px);
  }

  .home-submenu {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .home-brand-name {
    display: none;
  }

  .home-tooltip-smaug-base {
    bottom: -0.6em;
    padding: 8px 12px;
  }

  .home-tooltip-smaug-content {
    padding: 8px 12px;
    font-size: 0.8em;
  }
}
