/* ==========================================================
   LMDx Technologies — big wide type, hard color blocks,
   warm black. Syne + Archivo. Badge colors as the accents.
   Stack: black → black → sky → navy.
   ========================================================== */

:root {
  --black: #171210;
  --black-deep: #0F0C0A;
  --cream: #F5EDDF;
  --cream-soft: rgba(245, 237, 223, 0.62);
  --cream-ghost: rgba(245, 237, 223, 0.16);
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.62);
  --ink-ghost: rgba(17, 17, 17, 0.2);
  --navy: #122348;
  --gold: #F9B248;
  --red: #FC3A52;
  --sky: #62CDFF;
  --green: #3FA34D;

  --font-display: "Syne", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --display: clamp(2.5rem, 7.8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }

/* ---------- type primitives ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.is-in .line__inner { transform: translateY(0); }
.line:nth-child(2) .line__inner { transition-delay: 0.08s; }
.line:nth-child(3) .line__inner { transition-delay: 0.16s; }
.line:nth-child(4) .line__inner { transition-delay: 0.24s; }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.section-label__num { color: var(--red); }

/* the badge rings, laid flat — the signature edge */
.stripe {
  height: 10px;
  background: linear-gradient(
    to right,
    var(--gold) 0 25%,
    var(--red) 25% 50%,
    var(--sky) 50% 75%,
    var(--cream) 75% 100%
  );
}
.stripe--band { height: 22px; }

/* ---------- nav ---------- */

/* transparent over the hero; a solid black bar with a border once you scroll */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav--solid {
  background: var(--black-deep);
  border-bottom-color: var(--cream-ghost);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav__logo { width: 44px; height: 44px; border-radius: 50%; transition: width 0.3s ease, height 0.3s ease; }
.nav--solid .nav__logo { width: 36px; height: 36px; }

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  color: var(--cream);
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 1; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 6rem;
  overflow: hidden;
  background: var(--black);
}

/* the astronaut's binary field, very faint, fading out toward the right */
.hero__bin {
  position: absolute;
  inset: 0;
  padding: 1rem var(--gutter);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.32em;
  color: var(--green);
  opacity: 0.09;
  word-break: break-all;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 70%);
  mask-image: linear-gradient(to right, black 0%, transparent 70%);
}

.hero__copy { position: relative; z-index: 2; }

.hero__title {
  font-size: var(--display);
  margin-bottom: 2rem;
}
.adj { color: var(--gold); display: inline-block; }

.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--cream-soft);
  max-width: 46ch;
}

/* the badge bleeds off the corner — about a quarter cropped */
.hero__badge {
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -12%;
  width: clamp(260px, 40vw, 580px);
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(40px) rotate(-6deg);
  transition: opacity 1.4s ease 0.4s, transform 1.4s var(--ease) 0.4s;
}
.hero.is-in .hero__badge { opacity: 1; transform: translateY(0) rotate(0); }

.hero .stripe { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }

/* ---------- 01 about ---------- */

.about {
  background: var(--black);
  padding: 4rem var(--gutter) 6rem;
}

.reveal {
  padding: 5rem 0 4rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.reveal .w { color: var(--cream-ghost); transition: color 0.35s ease; }
.reveal .w.on { color: var(--cream); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--cream-ghost);
  padding-top: 1.75rem;
  max-width: 900px;
}
.facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-bottom: 0.25rem;
}
.facts dd { font-weight: 500; }
.facts dd + dd { margin-top: 0.2rem; }
.soon {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(249, 178, 72, 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
}

/* ---------- 02 work ---------- */

.work {
  background: var(--sky);
  color: var(--ink);
  padding: 4rem var(--gutter) 6rem;
}
.work .section-label__num { color: var(--ink); }

.work__title {
  font-size: var(--display);
  margin: 4rem 0 6rem;
}

.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--ink-ghost);
  padding: 3rem 0;
}
.project:last-child { border-bottom: 1px solid var(--ink-ghost); }

.project__info { min-width: 0; }

/* the product logo sits in front of the name */
.project__logo {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.project__logo--ph {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--sky);
  font-size: 0.42em;
  letter-spacing: 0;
}

/* preview card: a screenshot, or a typographic stand-in until one exists */
.project__card {
  display: block;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.project__card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.project__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.project__card--ph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.project__card--ph span { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; }
.project__card--ph small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-top: 0.6rem;
  opacity: 0.7;
}
.project__card--gold { background: var(--gold); color: var(--ink); }
.project__card--navy { background: var(--navy); color: var(--cream); }

.project__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.project__link { color: var(--ink); transition: color 0.2s ease; }
.project__link:hover { color: var(--red); }

.project__name {
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  margin-bottom: 1.25rem;
}

.project__desc {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.project__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.project__tags {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.project__more {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.project__more:hover { color: var(--red); border-color: var(--red); }

/* ---------- 03 contact ---------- */

.contact {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: 4rem var(--gutter) 2rem;
  overflow: hidden;
}

/* 21 — first easter egg */
.contact__ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14rem, 46vw, 40rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(245, 237, 223, 0.06);
  pointer-events: none;
  user-select: none;
}

.contact .kicker { margin-top: clamp(4rem, 12vw, 8rem); }

.contact__title {
  position: relative;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  text-transform: none;
  margin-bottom: 3.5rem;
}
.contact__title em { font-style: normal; color: var(--gold); }

.contact__email {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact__email-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.contact__email-addr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.15em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact__email-addr .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.contact__email:hover .contact__email-addr { color: var(--gold); }
.contact__email:hover .arrow { transform: translate(0.15em, -0.15em); }

/* ---------- footer (lives inside contact) ---------- */

.footer {
  position: relative;
  margin-top: clamp(7rem, 20vw, 14rem);
  border-top: 1px solid var(--cream-ghost);
  padding-top: 1.25rem;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__row--meta {
  margin-top: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.8;
}
.footer__top:hover { color: var(--gold); }

.footer__badges { display: flex; gap: 0.5rem; }

/* low-key ownership badges — present, proud, not shouting */
.owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--cream-ghost);
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
}
.owned-badge svg { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project__card { max-width: 520px; }
}

@media (max-width: 720px) {
  :root { --display: 7.2vw; }
  .hero { padding-top: 6rem; padding-bottom: 9rem; }
  .hero__badge { width: 62vw; right: -18%; bottom: -8%; }
  .hero__bin { font-size: 0.7rem; }
  .footer__row--meta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line__inner { transform: none; transition: none; }
  .hero__badge { opacity: 1; transform: none; transition: none; }
}
