/* ============================================================
   neubau — coming soon
   canvas #F5F5F3 · ink #1D2130 · muted #A8AFBC
   type: Satoshi (body) · Outfit (wordmark) · JetBrains Mono (labels)
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

:root {
  --pad-x: clamp(20px, 4vw, 48px);
}

body {
  font-family: "Satoshi", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(120vw 90vh at 50% 30%, #fbfbf9 0%, #ecece7 100%);
  color: #1d2130;
  overflow: hidden; /* released after the preloader */
  -webkit-font-smoothing: antialiased;
}

/* faint structural grid, visible at the top and bottom bands only */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 33, 48, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 33, 48, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 30%, transparent 70%, black);
  mask-image: linear-gradient(to bottom, black, transparent 30%, transparent 70%, black);
}

/* soft light glows — cool top-left, warm bottom-right, spotlight on the deck */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(56vw 34vh at 50% 20%, rgba(255, 255, 255, 0.85), transparent 72%),
    radial-gradient(680px 460px at 10% 4%, rgba(112, 128, 162, 0.17), transparent 70%),
    radial-gradient(780px 560px at 92% 96%, rgba(202, 176, 138, 0.2), transparent 70%);
}

/* cursor spotlight (desktop pointers only) */
.cursor-glow {
  position: fixed;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(188, 172, 142, 0.16), transparent 72%);
  will-change: transform;
}

@media (hover: none), (max-width: 760px) {
  .cursor-glow {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ Preloader (files 6) ============ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141516;
}

.preloader__svg {
  position: absolute;
  top: 0;
  width: 100%;
  height: calc(100% + 300px);
}

.preloader__svg path {
  fill: #141516;
}

.preloader__word {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
}

.preloader__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: #ffffff;
  flex: 0 0 auto;
}

/* ============ Layout ============ */

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 32px) var(--pad-x);
}

/* ============ Header ============ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #16181f;
}

.logo__glyph {
  width: 27px;
  height: 18px;
  fill: #16181f;
}

.logo__word {
  font-family: "Outfit", "Satoshi", sans-serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: translateY(-1px);
}

/* ============ Stage ============ */

.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 2.5vh, 36px) 0;
}

/* --- deck of work snapshots --- */

.deck {
  position: relative;
  width: min(560px, 92vw);
  height: clamp(240px, 34vh, 320px);
  margin-bottom: clamp(20px, 3.5vh, 38px);
}

.deck__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 21vw, 240px);
  aspect-ratio: 4 / 5;
  padding: 9px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(29, 33, 48, 0.05),
    0 12px 24px -8px rgba(29, 33, 48, 0.1),
    0 32px 64px -16px rgba(29, 33, 48, 0.16);
  /* no-JS fallback; GSAP takes over the transform entirely */
  transform: translate(-50%, -50%) translateX(var(--x)) rotate(var(--r));
  will-change: transform;
}

.deck__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  background: #eceded;
}

.deck__card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(29, 33, 48, 0.06);
  pointer-events: none;
}

/* --- code chip --- */

.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #8b93a2;
  background: #eaeae7;
  padding: 5px 12px;
  border-radius: 7px;
  margin-bottom: 22px;
}

/* --- two-tone caption --- */

.caption {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  color: #adb3bf;
  letter-spacing: 0.002em;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.caption__ink {
  color: #1d2130;
  font-weight: 500;
}

/* --- CTA --- */

.cta {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__trigger {
  height: 54px;
  padding: 0 34px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: #ffffff;
  background: #23262e;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(29, 33, 48, 0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta__trigger:hover {
  background: #101218;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(29, 33, 48, 0.5);
}

.cta__trigger:focus-visible,
.cta__submit:focus-visible {
  outline: 2px solid #23262e;
  outline-offset: 3px;
}

.cta__form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 54px;
  padding: 5px 5px 5px 22px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(29, 33, 48, 0.06),
    0 14px 32px -12px rgba(29, 33, 48, 0.18);
}

.cta__form[hidden],
.cta__done[hidden] {
  display: none;
}

.cta__input {
  width: min(260px, 56vw);
  font: inherit;
  font-size: 15px;
  color: #1d2130;
  background: none;
  border: none;
  outline: none;
}

.cta__input::placeholder {
  color: #a8afbc;
}

.cta__submit {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #23262e;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s;
  flex: 0 0 auto;
}

.cta__submit:hover {
  background: #101218;
}

.cta__submit svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.cta__done {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 30px;
  font-size: 15.5px;
  font-weight: 500;
  color: #ffffff;
  background: #1f7a58;
  border-radius: 9px;
}

.cta__done svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
}

/* --- selected work chips --- */

.worklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: clamp(20px, 3.5vh, 32px);
}

.worklink {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #565e6e;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.2s;
}

.worklink:hover {
  color: #1d2130;
  background-size: 100% 1px;
}

.worklink:focus-visible {
  outline: 2px solid #23262e;
  outline-offset: 3px;
  border-radius: 2px;
}

.worklink__arrow {
  font-size: 11px;
  color: #a8afbc;
  transition: color 0.25s, transform 0.25s;
}

.worklink:hover .worklink__arrow {
  color: #1d2130;
  transform: translate(1px, -1px);
}

/* ============ Blueprint marks ============ */

.mark {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: rgba(29, 33, 48, 0.16);
  pointer-events: none;
  user-select: none;
}

.mark--tl { left: 9%; top: 26%; }
.mark--tr { right: 9%; top: 26%; }
.mark--bl { left: 9%; bottom: 30%; }
.mark--br { right: 9%; bottom: 30%; }

/* ============ Services marquee ============ */

.marquee {
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad-x)) clamp(18px, 3vh, 26px);
  padding: 14px 0;
  border-top: 1px solid rgba(29, 33, 48, 0.07);
  border-bottom: 1px solid rgba(29, 33, 48, 0.07);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
}

.marquee__item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a2a9b6;
  white-space: nowrap;
}

.marquee__glyph {
  width: 13px;
  height: 9px;
  fill: #d0d4dc;
  flex: 0 0 auto;
}

/* ============ Footer ============ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9aa1ae;
  white-space: nowrap;
}

.footer__social {
  display: flex;
  gap: 18px;
  list-style: none;
}

.footer__social a {
  display: block;
  color: #a3aab7;
  transition: color 0.2s, transform 0.2s;
}

.footer__social a:hover {
  color: #1d2130;
  transform: translateY(-1px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============ Responsive ============ */

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .deck {
    height: clamp(230px, 34vh, 300px);
  }

  .deck__card {
    width: clamp(150px, 38vw, 190px);
  }

  .caption .caption__br {
    display: none;
  }

  .mark {
    display: none;
  }

  .footer {
    flex-direction: column-reverse;
    gap: 20px;
    padding-top: 8px;
  }

  .footer__work {
    gap: 8px 18px;
  }
}

@media (max-width: 480px) {
  .preloader__word {
    font-size: 32px;
  }

  .header__tag {
    font-size: 10px;
  }

  .cta__input {
    width: 48vw;
  }
}

/* ============ Reduced motion ============ */

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