:root {
  --bg: #050505;
  --bg-soft: #101010;
  --text: #f4f1ea;
  --muted: #afaba2;
  --line: #222;
  --accent: #ff6a00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

.noise-layer,
.gradient-haze {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.noise-layer {
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 25% 20%, #ffffff16 1px, transparent 1.2px),
    radial-gradient(circle at 75% 70%, #ffffff10 1px, transparent 1.2px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: soft-light;
}

.gradient-haze {
  display: none;
}

.site-shell {
  width: min(1280px, 100% - 3rem);
  margin: 0 auto;
  padding: 0 0 2rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.top-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(0.85rem, 2vw, 1.9rem) 1rem;
  border: 0;
  pointer-events: auto;
}

.brand,
.nav-links a,
.hire-button {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.brand::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #2fd36a;
  box-shadow: 0 0 0 0 #2fd36a66;
  animation: online-pulse 2.2s ease-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a:only-child {
  margin-inline: auto;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.hire-button {
  border: 1px solid #ddd8cc33;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #ffffff0f;
}

.tech-marquee,
.services-showcase {
  pointer-events: none;
}

.contact-strip {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: clamp(0.95rem, 2.6vw, 2.8rem);
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  margin-top: 0;
  padding: 7rem clamp(0.9rem, 2vw, 2rem) 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
}

.hero::before {
  content: none;
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%);
  font-family: "Anton", sans-serif;
  font-size: clamp(6rem, 30vw, 26rem);
  line-height: 0.8;
  color: #ffffff09;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  white-space: nowrap;
}

.hero::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: none;
}

.hero-copy {
  position: absolute;
  left: clamp(0.8rem, 4vw, 4.5rem);
  top: clamp(9.5rem, 22vh, 13rem);
  z-index: 3;
  width: min(660px, 44vw);
  min-height: auto;
  display: grid;
  gap: 0.5rem;
}

.kicker {
  position: relative;
  margin: 0;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.72rem;
}

.hero-title {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: start;
  gap: clamp(0.55rem, 1.25vw, 1.1rem);
}

.hero-title span {
  position: relative;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.45rem, 7.8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #f1eee7;
  text-shadow: 0 8px 20px #000000c7;
  left: 0;
}

.hero-title span:first-child,
.hero-title span:last-child {
  color: #ddd8cf;
  text-shadow: 0 8px 20px #000000c7;
}

.hero-title span:nth-child(2) {
  color: var(--accent);
  text-shadow: 0 8px 20px #000000c7;
}

.hero-title span:last-child {
  font-size: clamp(2.45rem, 8vw, 6.9rem);
}

.hero-side-note {
  position: absolute;
  z-index: 4;
  width: min(280px, 30vw);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c6c1b5;
}

.hero-side-note p {
  margin: 0 0 0.45rem;
  line-height: 1.5;
}

.hero-side-note.left.inline {
  display: none;
}

.hero-side-note.right {
  display: block;
  right: clamp(0.9rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2.5vh, 1.8rem);
  width: min(360px, 28vw);
  text-align: right;
  font-size: 0.7rem;
  color: #d9d3c9d9;
}

.hero-side-note.right p:first-child {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.model-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 8%, #1c1c1c 0%, #0a0a0a 42%, #000 72%),
    linear-gradient(125deg, #060606 0%, #000 60%, #080808 100%);
  overflow: hidden;
  z-index: 0;
  pointer-events: auto;
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      #ffffff06 0,
      #ffffff06 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.11;
  mix-blend-mode: soft-light;
}

.model-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 36%, transparent 34%, #00000066 86%),
    linear-gradient(180deg, #00000000 42%, #0000003d 100%);
}

.model-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.55rem;
  z-index: 1;
  background: #050505d1;
}

.model-fallback::before {
  content: "";
  width: min(240px, 40vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 1px solid #ffffff40;
  box-shadow:
    0 0 0 20px #ffffff0b,
    0 0 90px #ffffff18 inset;
  animation: pulse 5s ease-in-out infinite;
}

.model-fallback p {
  margin: 0;
  font-family: "Anton", sans-serif;
  letter-spacing: 0.07em;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.model-fallback span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: #c8c3b8;
}

.model-fallback code {
  color: #fff;
}

#hero-model {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  filter: brightness(1.48) contrast(1.08) saturate(1.04);
}

.tech-marquee {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0.8rem clamp(0.9rem, 2vw, 1.9rem) 0.9rem;
  border: 0;
  background: transparent;
}

.tech-marquee-viewport {
  position: relative;
  overflow: hidden;
  outline: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: tech-marquee-scroll 52s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  min-width: max-content;
  padding-inline-end: clamp(1.25rem, 2.2vw, 2rem);
}

.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(92px, 11vw, 142px);
  height: clamp(30px, 3.2vw, 42px);
  border-radius: 999px;
  outline: none;
  border: 1px solid transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.logo-item {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  opacity: 0.82;
  filter: brightness(0) invert(0.94);
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

.logo-slot:hover .logo-item,
.logo-slot:focus-visible .logo-item {
  opacity: 0.96;
  filter: sepia(1) saturate(8.4) hue-rotate(-15deg) brightness(1.05) contrast(0.98);
}

.logo-slot:focus-visible {
  border-color: #ff6a0073;
  box-shadow: 0 0 0 3px #ff6a001f;
}

.services-showcase {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 232vh;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.services-stage {
  position: sticky;
  top: clamp(4.6rem, 10vh, 7.2rem);
  height: min(82vh, 860px);
  width: min(1400px, calc(100% - clamp(1.2rem, 4vw, 4rem)));
  margin: 0 auto;
  pointer-events: none;
}

.service-point {
  position: absolute;
  width: min(34vw, 460px);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}

.service-point h2 {
  margin: 0 0 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.78rem, 1.08vw, 0.96rem);
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #ded8cd;
}

.service-point h2::before {
  content: "// ";
  color: var(--accent);
}

.service-point p {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.12rem, 2.08vw, 2.08rem);
  font-weight: 500;
  letter-spacing: 0.014em;
  line-height: 1.14;
  color: #f2eee4;
  text-wrap: balance;
}

.point-dev {
  left: clamp(0.2rem, 3.2vw, 2.4rem);
  top: clamp(1rem, 8vh, 4.4rem);
}

.point-host {
  right: clamp(0.2rem, 3.2vw, 2.4rem);
  top: clamp(2.2rem, 13vh, 7rem);
  text-align: right;
}

.point-auto {
  left: clamp(0.2rem, 3.2vw, 2.4rem);
  bottom: clamp(5.5rem, 17vh, 10rem);
}

.point-sys {
  width: min(40vw, 600px);
  right: clamp(0.2rem, 3.2vw, 2.4rem);
  bottom: clamp(4rem, 12vh, 8.4rem);
  text-align: right;
}

.contact-strip {
  margin-top: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
}

.contact-strip p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-strip a {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(0.85rem, 3.5vw, 2rem);
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, #ff6a001f 0%, transparent 30%),
    linear-gradient(180deg, #02020280 0%, #010101d4 100%);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background:
    linear-gradient(160deg, #0a0a0ae0 0%, #060606f2 100%),
    repeating-linear-gradient(
      90deg,
      #ffffff05 0,
      #ffffff05 1px,
      transparent 1px,
      transparent 4px
    );
  border: 1px solid #ffffff22;
  border-radius: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  box-shadow:
    0 30px 90px #000000a6,
    inset 0 1px 0 #ffffff16;
}

.contact-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #0a0a0ad9;
  color: #d8d2c7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
}

.contact-modal__kicker {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-modal__title {
  margin: 0.5rem 0 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.contact-modal__copy {
  margin: 0.65rem 0 1.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bdb8ae;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__field span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: #a9a397;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid #ffffff2a;
  border-radius: 0.7rem;
  background: #0000008f;
  color: #f4f1ea;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  padding: 0.72rem 0.82rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: #ff6a00b5;
  box-shadow: 0 0 0 3px #ff6a002b;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.contact-form__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.contact-form__status {
  margin: 0;
  min-height: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #a9a397;
  text-transform: uppercase;
}

.contact-form__status[data-state="error"] {
  color: #ff8a8a;
}

.contact-form__status[data-state="success"] {
  color: #65d58f;
}

.contact-form__submit {
  border: 1px solid #ff6a00a8;
  border-radius: 999px;
  background: #ff6a0014;
  color: #f4f1ea;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.58rem 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes online-pulse {
  0% {
    box-shadow: 0 0 0 0 #2fd36a66;
    opacity: 0.85;
  }
  70% {
    box-shadow: 0 0 0 0.48rem #2fd36a00;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 #2fd36a00;
    opacity: 0.85;
  }
}

@keyframes tech-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: none;
  }

  .tech-marquee-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 0.3rem;
  }

  .marquee-group {
    scroll-snap-align: start;
  }

  .tech-marquee-viewport:hover .marquee-track {
    animation-play-state: running;
  }
}

@media (max-width: 1080px) {
  .hero-copy {
    left: 1.2rem;
    top: clamp(9rem, 23vh, 11.4rem);
    width: min(620px, 50vw);
  }

  .hero-side-note.right {
    right: 0.9rem;
    bottom: 1rem;
    width: min(300px, 34vw);
  }
}

@media (max-width: 900px) {
  .noise-layer {
    opacity: 0.12;
  }

  .model-stage::before {
    opacity: 0.08;
  }

  .site-shell {
    width: min(1100px, 100% - 1.4rem);
  }

  .tech-marquee {
    padding-top: 0.7rem;
  }

  .marquee-track {
    animation-duration: 66s;
  }

  .logo-slot {
    min-width: clamp(84px, 21vw, 120px);
    height: clamp(26px, 7.5vw, 34px);
  }

  .top-nav {
    position: absolute;
    flex-wrap: wrap;
    row-gap: 0.8rem;
    padding-top: 1rem;
  }

  .hero {
    min-height: 100svh;
    padding: 7.2rem clamp(0.7rem, 3vw, 1.1rem) 1.2rem;
    text-align: center;
  }

  .hero::before {
    content: none;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    max-width: min(680px, 100%);
    width: min(680px, 100%);
    min-height: auto;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
  }

  .kicker,
  .hero-title {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .hero-title {
    display: grid;
    width: auto;
    justify-items: center;
    gap: 0;
  }

  .hero-title span {
    position: relative;
    font-size: clamp(2.05rem, 13.2vw, 4.55rem);
  }

  .hero-title span:first-child,
  .hero-title span:last-child {
    left: auto;
    right: auto;
  }

  .hero-title span:nth-child(2) {
    left: auto;
  }

  .hero-side-note {
    position: static;
    width: auto;
    margin-top: 0.9rem;
  }

  .hero-side-note.right {
    display: none;
  }

  .services-showcase {
    min-height: auto;
    padding: 1.4rem 0.8rem 2rem;
  }

  .services-stage {
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    display: grid;
    gap: 1rem;
  }

  .service-point {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ffffff14;
  }

  .service-point h2 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .service-point p {
    font-size: clamp(1rem, 5.5vw, 1.36rem);
    max-width: 30ch;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .contact-modal__panel {
    max-height: min(92vh, 960px);
    border-radius: 0.95rem;
  }

  .contact-modal__title {
    font-size: clamp(1.6rem, 10vw, 2.55rem);
  }

  .contact-form__actions {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .service-point p {
    font-size: 1rem;
  }

  .marquee-group {
    gap: 1rem;
    padding-inline-end: 1rem;
  }
}
