:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0c10;
  color: #fff;
  --accent: #b6f36a;
  --header-gutter: 20px;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

body {
  min-width: 280px;
  background: #0a0c10;
  color: #fff;
}

html {
  scrollbar-color: var(--accent) #15181b;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #15181b;
}

html::-webkit-scrollbar-thumb {
  border: 2px solid #15181b;
  border-radius: 10px;
  background: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 84px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 48%, rgb(182 243 106 / 8%), transparent 34%),
    #0a0c10;
}

.hero::after {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #252a30;
  content: "";
  transform: translateX(50%);
  pointer-events: none;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(182 243 106 / 17%), rgb(182 243 106 / 7%) 38%, transparent 72%);
  content: "";
  filter: blur(56px);
  opacity: 0.8;
  pointer-events: none;
  animation: hero-diagonal-glow 18s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1640px, calc(100% - 80px));
  min-height: calc(100svh - 84px);
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  margin-inline: auto;
  padding-block: 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: #f0f1eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: hero-rise-in 650ms 80ms both;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 19px rgb(182 243 106 / 62%);
  animation: hero-dot-breathe 2.4s ease-in-out infinite;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 1.02;
  animation: hero-rise-in 750ms 150ms both;
}

.hero h1 > span,
.hero-title-period {
  color: var(--accent);
}

.hero-title-break {
  display: none;
}

.hero-description {
  max-width: 550px;
  margin: 0;
  color: #a4a9a1;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.7;
  animation: hero-rise-in 750ms 230ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  animation: hero-rise-in 750ms 310ms both;
}

.hero-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.hero-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: color 220ms ease, transform 220ms ease;
}

.hero-button-primary {
  background: var(--accent);
  color: #11140d;
}

.hero-button-primary:focus-visible {
  transform: translateY(-2px);
  border-color: #3a4141;
  background: #252b2d;
  color: #fff;
}

.hero-button-primary:focus-visible svg {
  color: var(--accent);
}

.hero-button-secondary {
  border-color: #343a40;
  background: transparent;
  color: #e2e5df;
}

.hero-button-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: #59614f;
  background: #151a19;
  color: #fff;
}

.hero-button-secondary:focus-visible svg {
  color: var(--accent);
  transform: translateY(3px);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .hero-button-primary:hover {
    transform: translateY(-2px);
    border-color: #3a4141;
    background: #252b2d;
    color: #fff;
  }

  .hero-button-primary:hover svg {
    color: var(--accent);
  }

  .hero-button-secondary:hover {
    transform: translateY(-2px);
    border-color: #59614f;
    background: #151a19;
    color: #fff;
  }

  .hero-button-secondary:hover svg {
    color: var(--accent);
    transform: translateY(3px);
  }
}

.hero-note {
  max-width: 440px;
  margin: 28px 0 0;
  color: #777e79;
  font-size: 13px;
  line-height: 1.65;
  animation: hero-rise-in 750ms 390ms both;
}

.hero-art {
  display: grid;
  min-width: 0;
  height: clamp(460px, 70vh, 680px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  animation: hero-art-in 850ms 180ms both;
}

.terminal-window,
.site-preview {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 24px 65px rgb(0 0 0 / 32%);
  transition: border-color 350ms ease, box-shadow 350ms ease;
}

.terminal-window {
  border: 1px solid rgb(232 236 220 / 18%);
  background:
    radial-gradient(ellipse at 12% 100%, rgb(182 243 106 / 5.5%), transparent 40%),
    #171a16;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .terminal-window:hover {
    border-color: rgb(182 243 106 / 40%);
    box-shadow: 0 30px 75px rgb(0 0 0 / 40%);
  }
}

.terminal-bar {
  display: grid;
  min-height: 42px;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding-inline: 12px;
  border-bottom: 1px solid rgb(243 242 234 / 9%);
  background: #20231e;
}

.terminal-lights,
.preview-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-lights i,
.preview-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777b70;
}

.terminal-lights i:first-child,
.preview-dots i:first-child {
  background: #f27b68;
}

.terminal-lights i:nth-child(2),
.preview-dots i:nth-child(2) {
  background: #efc05b;
}

.terminal-lights i:nth-child(3),
.preview-dots i:nth-child(3) {
  background: #85c875;
}

.terminal-title {
  overflow: hidden;
  color: #aeb2a5;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
  color: #abb09f;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.terminal-status > span,
.build-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgb(182 243 106 / 75%);
}

.terminal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 20px clamp(10px, 1.5vw, 24px);
  color: #d3dacd;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.65;
}

.terminal-line {
  display: grid;
  min-height: 1.65em;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
}

.line-number {
  color: #62685d;
  user-select: none;
}

.terminal-line code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #d8e8d0;
  font: inherit;
}

.terminal-command {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.terminal-command code {
  min-width: 0;
}

.terminal-line:nth-child(1) code,
.terminal-line:nth-child(6) code {
  color: var(--accent);
}

.terminal-footer {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  margin-inline: 16px;
  border-top: 1px solid rgb(243 242 234 / 8%);
  color: #82877c;
  font-size: 9px;
}

.terminal-language-icon {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  vertical-align: -1px;
}

.terminal-branch {
  margin-left: 9px;
  color: #9da393;
}

.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  flex: 0 0 6px;
  margin-left: 5px;
  background: var(--accent);
  animation: hero-cursor-blink 900ms steps(1, end) infinite;
}

.site-preview {
  border: 1px solid rgb(243 242 234 / 28%);
  background: #eceee4;
  box-shadow: 0 34px 90px rgb(0 0 0 / 55%);
  color: #141610;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .site-preview:hover {
    border-color: rgb(182 243 106 / 55%);
    box-shadow: 0 38px 80px rgb(0 0 0 / 50%);
  }
}

.preview-chrome {
  display: grid;
  min-height: 32px;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding-inline: 10px;
  background: #f6f7f1;
}

.preview-dots {
  gap: 4px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
}

.preview-url {
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 12px;
  border-radius: 3px;
  background: #e8e9e1;
  color: #686c60;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-lock {
  justify-self: end;
  color: #85897c;
  font-size: 10px;
}

.preview-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #eceee4;
  overscroll-behavior: contain;
  scrollbar-color: #9ba786 #e3e5da;
  scrollbar-width: thin;
}

.preview-viewport::-webkit-scrollbar {
  width: 6px;
}

.preview-viewport::-webkit-scrollbar-track {
  background: #e3e5da;
}

.preview-viewport::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #9ba786;
}

.preview-empty {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  background:
    radial-gradient(ellipse at 50% 50%, rgb(182 243 106 / 12%), transparent 45%),
    #eceee4;
  color: #89907d;
  font-size: 9px;
  letter-spacing: 0.15em;
  transition: opacity 400ms ease;
}

.preview-empty i {
  width: 24px;
  height: 1px;
  background: var(--accent);
  animation: hero-preview-wait 1.2s ease-in-out infinite;
}

.preview-page {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #eceee4;
  color: #171913;
}

.preview-site {
  min-height: 620px;
  background:
    radial-gradient(ellipse at 86% 44%, rgb(182 243 106 / 58%), transparent 34%),
    #eceee4;
  transition: background 500ms ease;
}

.preview-site.is-styled {
  background:
    radial-gradient(ellipse at 86% 44%, rgb(182 243 106 / 72%), transparent 38%),
    #eceee4;
}

.preview-site.is-styled .inner-site-title span {
  color: #617b37;
}

.inner-site-header {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-inline: 12px;
  border-bottom: 1px solid rgb(20 22 16 / 15%);
}

.inner-site-wordmark {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.inner-site-links {
  overflow: hidden;
  color: #707467;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inner-site-contact {
  padding: 5px 6px;
  background: #171913;
  color: #f3f2ea;
  font-size: 7px;
  white-space: nowrap;
}

.inner-site-hero {
  position: relative;
  min-height: 203px;
  padding: 24px 15px 20px;
  background: rgb(255 255 255 / 24%);
}

.inner-site-kicker {
  margin: 0 0 10px;
  color: #717668;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.inner-site-title {
  max-width: 90%;
  margin: 0;
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.inner-site-title span {
  color: #747b63;
}

.inner-site-copy {
  max-width: 190px;
  margin: 10px 0 0;
  color: #676b5f;
  font-size: 9px;
  line-height: 1.5;
}

.inner-site-cta {
  position: absolute;
  right: 12px;
  bottom: 17px;
  display: inline-flex;
  gap: 7px;
  padding: 7px 8px;
  background: #171913;
  color: #f3f2ea;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.inner-site-cta b {
  font-size: 9px;
}

.inner-site-projects {
  padding: 15px;
  background: #171914;
  color: #f3f2ea;
}

.inner-projects-kicker {
  margin: 0 0 11px;
  color: #a4a99a;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.inner-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.inner-project-card {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  border: 1px solid rgb(243 242 234 / 17%);
  background: #20221c;
}

.inner-project-number {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.inner-project-name {
  font-size: 12px;
  font-weight: 600;
}

.inner-project-caption {
  color: #a6a99a;
  font-size: 7px;
}

.inner-site-next-step {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 15px;
  background: #dce1cf;
}

.inner-next-step-kicker {
  margin: 0 0 9px;
  color: #717668;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.inner-next-step-title {
  max-width: 90%;
  margin: 0;
  font-size: clamp(17px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.inner-next-step-copy {
  max-width: 210px;
  margin: 8px 0 11px;
  color: #676b5f;
  font-size: 9px;
  line-height: 1.5;
}

.inner-next-step-action {
  padding: 6px 8px;
  background: #171913;
  color: #f3f2ea;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.inner-site-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 15px;
  color: #717668;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.preview-build-status {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding-inline: 9px;
  border-top: 1px solid rgb(20 22 16 / 12%);
  background: #f6f7f1;
  color: #666b5c;
  font-size: 9px;
}

.preview-build-percent {
  margin-left: auto;
  color: #555a4b;
  font-variant-numeric: tabular-nums;
}

.build-status-dot {
  width: 5px;
  height: 5px;
  background: #92978a;
  box-shadow: none;
  transition: background 250ms ease, box-shadow 250ms ease;
}

.hero-art.is-building .preview-site > * {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.hero-art.is-building .preview-site.has-header > .inner-site-header,
.hero-art.is-building .preview-site.has-hero > .inner-site-hero,
.hero-art.is-building .preview-site.has-projects > .inner-site-projects,
.hero-art.is-building .preview-site.has-published > .inner-site-next-step,
.hero-art.is-building .preview-site.has-published > .inner-site-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-link__runner {
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-art.is-building .preview-empty {
  opacity: 1;
}

.hero-art.is-building .preview-viewport.is-started .preview-empty {
  opacity: 0;
  pointer-events: none;
}

.hero-art.is-built .preview-site {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero-art.is-built .preview-empty {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hero-art.is-building .build-status-dot,
.hero-art.is-built .build-status-dot {
  background: #78b94b;
  box-shadow: 0 0 8px rgb(120 185 75 / 55%);
}

@keyframes hero-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-diagonal-glow {
  0% {
    opacity: 0.25;
    transform: translate(0, 0);
  }

  35% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translate(115%, 105%);
  }
}

@keyframes hero-art-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-dot-breathe {
  50% {
    box-shadow: 0 0 5px var(--accent), 0 0 12px rgb(182 243 106 / 48%);
  }
}

@keyframes hero-cursor-blink {
  0%,
  49% {
    visibility: visible;
  }

  50%,
  100% {
    visibility: hidden;
  }
}

@keyframes hero-preview-wait {
  50% {
    transform: scaleX(0.35);
    opacity: 0.45;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 18px var(--header-gutter);
  border-bottom: 1px solid #252a30;
  background: #0a0c10;
}

.brand {
  justify-self: start;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  grid-column: 2;
  gap: clamp(22px, 3.2vw, 48px);
}

.nav-link {
  position: relative;
  padding: 10px 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link span {
  color: #fff;
  transition: color 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:focus-visible span {
  color: var(--accent);
}

.nav-link:focus-visible::after {
  transform: scaleX(1);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .nav-link:hover span {
    color: var(--accent);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }
}

.nav-link.from-right::after {
  transform-origin: right center;
}

.nav-link.from-right::after {
  transform-origin: right center;
}

.contact-link {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.primary-nav > .contact-link {
  position: absolute;
  top: 50%;
  right: var(--header-gutter);
  transform: translateY(-50%);
}

.contact-link:focus-visible {
  background: #34373c;
}

.contact-link:focus-visible .contact-link__track {
  stroke: #858a91;
}

.contact-link__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: color 220ms ease, transform 220ms ease;
}

.contact-link:focus-visible .contact-link__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .contact-link:hover {
    background: #34373c;
  }

  .contact-link:hover .contact-link__track {
    stroke: #858a91;
  }

  .contact-link:hover .contact-link__arrow {
    color: var(--accent);
    transform: translateX(3px);
  }
}

.contact-link__orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.contact-link__track {
  fill: none;
  stroke: #62666c;
  stroke-width: 1px;
  transition: stroke 220ms ease;
}

.contact-link__progress {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 1.5px;
}

.contact-link__runner {
  opacity: 0;
  fill: var(--accent);
  stroke: #e6ffc4;
  stroke-width: 0.8px;
  filter: drop-shadow(0 0 2px var(--accent)) drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 9px rgb(182 243 106 / 75%));
  pointer-events: none;
}

.contact-link.is-orbiting .contact-link__runner {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid #42464c;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

.brand:focus-visible,
.nav-link:focus-visible,
.contact-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: auto;
    display: flex;
    width: calc(100vw - var(--header-gutter) - var(--header-gutter));
    max-width: 320px;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid #34383e;
    border-radius: 12px;
    background: #101318;
    box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
    grid-column: auto;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-link {
    padding: 12px 2px;
    border-bottom: 1px solid #34383e;
    font-size: 16px;
  }

  .nav-link::after {
    right: auto;
    bottom: 5px;
    width: 100%;
    max-width: 112px;
  }

  .primary-nav > .contact-link {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-start;
    margin-top: 5px;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    width: min(940px, calc(100% - 64px));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-block: 16px 76px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-art {
    height: clamp(460px, 58vw, 560px);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    width: calc(100% - 48px);
    gap: 32px;
    padding-block: 16px 68px;
  }

  .hero h1 {
    font-size: clamp(46px, 8vw, 68px);
  }
}

@media (max-width: 600px) {
  .hero-inner {
    width: calc(100% - 36px);
    gap: 30px;
    padding-block: 12px 58px;
  }

  .hero-eyebrow {
    gap: 9px;
    margin-bottom: 19px;
    font-size: 11px;
  }

  .hero h1 {
    margin-bottom: 17px;
    font-size: clamp(39px, 10.2vw, 56px);
    letter-spacing: -0.06em;
    line-height: 1.04;
  }

  .hero-title-break {
    display: block;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 23px;
  }

  .hero-button {
    min-height: 47px;
    gap: 11px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .hero-note {
    margin-top: 18px;
    font-size: 11px;
  }

  .hero-art {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .terminal-window,
  .site-preview {
    height: 300px;
  }

  .terminal-body {
    gap: 9px;
    padding: 14px 16px;
    font-size: 11px;
  }

  .inner-site-title {
    font-size: clamp(31px, 8vw, 40px);
  }

  .inner-next-step-title {
    font-size: clamp(21px, 5.5vw, 27px);
  }
}

@media (max-width: 380px) {
  .hero-inner {
    width: calc(100% - 32px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button {
    justify-content: space-between;
  }

  .terminal-body {
    padding-inline: 10px;
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  :root {
    --header-gutter: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .primary-nav {
    width: min(320px, calc(100vw - 32px));
    padding: 15px;
  }
}

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

  .hero-art .terminal-cursor {
    animation: none !important;
    visibility: visible;
  }

  .hero::before {
    animation: none;
    opacity: 0.35;
    transform: translate(20%, 15%);
  }
}

.site-footer {
  border-top: 1px solid #252a30;
  background: #0a0c10;
}

.site-footer__inner {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  min-height: 88px;
  grid-template-columns: 1fr 1fr auto auto;
  align-items: center;
  gap: 20px;
  margin-inline: auto;
  color: #858d88;
  font-size: 12px;
}

.site-footer__brand {
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-footer__brand span {
  margin-left: 2px;
  color: #b6f36a;
  font-size: 10px;
  vertical-align: top;
}

.site-footer__descriptor {
  margin: 0;
  color: #858d88;
}

.site-footer__top {
  color: #c4cbc4;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__top:focus-visible {
  color: #b6f36a;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .site-footer__top:hover {
    color: #b6f36a;
  }
}

.site-footer__top span {
  margin-left: 4px;
  color: #b6f36a;
}

.site-footer__copyright {
  color: #777e79;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .site-footer__inner {
    width: calc(100% - 40px);
    min-height: 100px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 18px;
    font-size: 11px;
  }

  .site-footer__brand {
    font-size: 14px;
  }

  .site-footer__descriptor {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer__top {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-footer__copyright {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (hover: none) {
  .nav-link:hover span {
    color: #fff;
  }

  .nav-link:hover::after {
    transform: scaleX(0);
  }

  .contact-link:hover {
    background: transparent;
  }

  .contact-link:hover .contact-link__track {
    stroke: #62666c;
  }

  .contact-link:hover .contact-link__arrow {
    color: currentColor;
    transform: none;
  }

  .hero-button-primary:hover,
  .hero-button-secondary:hover {
    transform: none;
    border-color: transparent;
    background: var(--accent);
    color: #11140d;
  }

  .hero-button-secondary:hover {
    border-color: #343a40;
    background: transparent;
    color: #e2e5df;
  }

  .hero-button:hover svg {
    color: currentColor;
    transform: none;
  }

  .terminal-window:hover,
  .site-preview:hover {
    border-color: rgb(232 236 220 / 18%);
    box-shadow: 0 24px 65px rgb(0 0 0 / 32%);
  }
}