@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk.woff2) format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SpaceMono-400.woff2) format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SpaceMono-700.woff2) format("woff2");
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #FCFBF8;
  background-image: linear-gradient(rgba(10, 11, 15, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 11, 15, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  color: #2A2C3A;
}

::selection {
  background: #E6FF00;
  color: #0A0B0F;
}

.bottom-fill {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: #FCFBF8;
  z-index: 6;
  pointer-events: none;
}

.bottom-rule {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 0;
  border-bottom: 1.5px solid rgba(10, 11, 15, 0.42);
  z-index: 7;
  pointer-events: none;
}

main {
  position: relative;
}

.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, #FCFBF8 60%, rgba(252, 251, 248, 0));
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #0A0B0F;
}
.logo svg {
  display: inline-block;
  vertical-align: -0.02em;
}

.logo-tag {
  margin-left: 9px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  color: #5C5F70;
}

.status {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5C5F70;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #00A878;
  display: inline-block;
}

section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(140px, 20vh, 240px) 0;
}

.hero {
  min-height: 100vh;
  justify-content: center;
  padding: 130px 0;
  z-index: auto;
}

.contact {
  padding: clamp(120px, 16vh, 180px) 0 clamp(200px, 30vh, 360px);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 48px);
}

.eyebrow, .kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #7A1FE6;
}

.eyebrow {
  letter-spacing: 0.24em;
  margin-bottom: 30px;
}

.kicker {
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.375rem, 7.4vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #0A0B0F;
  text-wrap: balance;
}
.hero h1 .accent {
  color: #7A1FE6;
}
.hero h1 .smaller {
  font-size: 0.8em;
}

.lede {
  margin: 36px 0 0;
  max-width: 60ch;
  font-family: "Space Mono", monospace;
  font-size: 0.84375rem;
  line-height: 1.85;
  color: #5C5F70;
}

h2 {
  margin: 0 0 30px;
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  letter-spacing: -0.03em;
  color: #0A0B0F;
  line-height: 1.02;
}

.prose {
  max-width: 66ch;
}
.prose p {
  margin: 0 0 20px;
  font-size: 1.09375rem;
  line-height: 1.7;
  color: #2A2C3A;
}
.prose p:last-child {
  margin-bottom: 0;
}

.mark-pink {
  padding: 0.06em 0.18em;
  background-color: #ff5fa7;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mark-lime {
  padding: 0.06em 0.18em;
  background: linear-gradient(101deg, rgba(230, 255, 0, 0) 1%, rgba(230, 255, 0, 0.9) 3%, rgba(230, 255, 0, 0.9) 97%, rgba(230, 255, 0, 0) 99%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.marquee-rail {
  overflow: hidden;
  border-top: 1px solid rgba(10, 11, 15, 0.16);
  border-bottom: 1px solid rgba(10, 11, 15, 0.16);
  padding: 28px 0;
}

.marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  will-change: transform;
  font-family: "Space Mono", monospace;
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  letter-spacing: 0.04em;
  color: #0A0B0F;
}
.marquee i {
  color: #7A1FE6;
  font-style: normal;
}

.more {
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: #5C5F70;
}

.mark-lime-tight {
  background: #E6FF00;
  color: #0A0B0F;
  padding: 0 0.16em;
}

.services-head {
  margin-bottom: 40px;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid rgba(10, 11, 15, 0.14);
}
.service-row.last {
  border-bottom: 1px solid rgba(10, 11, 15, 0.14);
}

.service-num {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #0A0B0F;
  background: #E6FF00;
  padding: 2px 6px;
  flex: 0 0 auto;
}

.service-title {
  flex: 0 0 220px;
  font-weight: 600;
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  color: #0A0B0F;
}

.service-desc {
  flex: 1 1 280px;
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #5C5F70;
}

.services-note {
  margin: 30px 0 0;
  font-family: "Space Mono", monospace;
  font-size: 0.84375rem;
  line-height: 1.7;
  color: #5C5F70;
}

.stack {
  margin-top: 40px;
}

.stack-label {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7A1FE6;
  margin-bottom: 16px;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}
.stack-list li {
  padding: 5px 11px;
  border: 1px solid rgba(10, 11, 15, 0.18);
  color: #2A2C3A;
  transition: border-color 0.2s, color 0.2s;
}
.stack-list li:hover {
  border-color: #7A1FE6;
  color: #7A1FE6;
}

.contact-head {
  margin: 0 0 26px;
  font-weight: 700;
  font-size: clamp(2.125rem, 5.6vw, 4.5rem);
  letter-spacing: -0.035em;
  color: #0A0B0F;
  line-height: 0.98;
}

.cursor {
  display: inline-block;
  width: 0.13em;
  height: 0.82em;
  background: #7A1FE6;
  margin-left: 0.16em;
  vertical-align: -0.02em;
  animation: blink 1.1s step-end infinite;
}

.contact-note {
  margin: 0 0 34px;
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: #5C5F70;
}

.contact-email {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(1.75rem, 5.4vw, 3.75rem);
  letter-spacing: -0.03em;
  color: #7A1FE6;
  text-decoration: none;
  border-bottom: 2px solid rgba(122, 31, 230, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.25s;
}
.contact-email:hover {
  border-bottom-color: #7A1FE6;
}

.imprint {
  margin-top: clamp(56px, 9vh, 104px);
  padding-top: 26px;
  max-width: 62ch;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.9;
  color: #5C5F70;
}
.imprint a {
  color: #5C5F70;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 11, 15, 0.25);
  transition: color 0.2s, border-color 0.2s;
}
.imprint a:hover {
  color: #7A1FE6;
  border-bottom-color: #7A1FE6;
}

.imprint-head {
  color: #7A1FE6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.imprint-list {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 28px;
}
.imprint-list dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0A0B0F;
}
.imprint-list dd {
  margin: 0;
}

.imprint-note {
  margin: 18px 0 0;
}

.scroll-next {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #E6FF00;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0B0F;
  z-index: 12;
  transition: transform 0.2s;
}
.scroll-next:hover {
  transform: translateX(-50%) scale(1.08);
}
.scroll-next svg {
  display: block;
  animation: bounceY 1.9s ease-in-out infinite;
}

.pug {
  position: fixed;
  left: clamp(8px, 3vw, 56px);
  bottom: 46px;
  width: clamp(208px, 24vw, 330px);
  aspect-ratio: 1254/341;
  background: url(../pug-head-ink-bg.png) left bottom/contain no-repeat;
  pointer-events: none;
  z-index: 8;
  transform-origin: left bottom;
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(0.34, 1.26, 0.42, 1);
  user-select: none;
}
.pug.active {
  transform: scale(1.8);
}

.page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 17px;
  z-index: 7;
  pointer-events: none;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5C5F70;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.85s ease 0.12s, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s;
}
.page-footer.active {
  opacity: 1;
  transform: translateY(0);
}
.page-footer .copy {
  font-size: 1.2em;
  position: relative;
  top: 0.09em;
  letter-spacing: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 90px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .contact {
    padding-bottom: clamp(200px, 22vh, 360px);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes blink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}
@keyframes bounceY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee, .scroll-next svg, .cursor {
    animation: none !important;
  }
  .pug, .page-footer {
    transition: none !important;
  }
}
