/* ============================================
   KINGDOM LABS — kingdomlabs.dev
   Single-page lander. Spec: design_handoff_kingdom_labs_landing/README.md
   ============================================ */

:root {
  /* color */
  --bg: #050809;
  --surface: #0b1416;
  --surface-2: #0f1a1c;
  --hairline: #16201f;
  --text: #eef1f0;
  --text-muted: #b7c1c1;
  --text-dim: #a9b3b3;
  --text-faint: #6f7c7e;
  --text-placeholder: #5e6b6c;
  --accent: #1fb8cc;
  --accent-hover: #7fe0ec;
  --accent-glow: rgba(31, 184, 204, .45);
  --accent-glow-strong: rgba(31, 184, 204, .5);

  /* type */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: 140px;
  --ease: 150ms ease;

  /* placeholder stripes (swap for real imagery) */
  --stripes: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  --stripes-fine: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface) 8px 16px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- Type utilities ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.02em;
  color: var(--text);
  text-transform: uppercase;
}
.display-h1 { font-size: clamp(64px, 10.4vw, 150px); }
.display-h2 { font-size: clamp(56px, 7.6vw, 110px); }

.lead {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-muted);
}
.body {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-muted);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.01em;
  color: var(--text);
}
.list-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Nav (absolute over hero) ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text);
}
.wordmark:hover { color: var(--text); }
.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.pill {
  border: 1px solid rgba(238, 241, 240, .25);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: min(900px, 100vh);
  min-height: 640px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 110%, var(--accent-glow), transparent 70%);
}
.hero-media,
.hero-fade {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 120px;
  bottom: 0;
}
.hero-media {
  background: var(--stripes);
  border: 1px solid var(--hairline);
  border-bottom: none;
  overflow: hidden;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
}
.hero-fade {
  background: linear-gradient(180deg, rgba(5, 8, 9, 0) 30%, rgba(5, 8, 9, .94) 100%);
}
.hero-content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 380px;
  padding-bottom: 10px;
}

/* ---------- Mission strip ---------- */

.mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline); /* shows through gaps as hairlines */
  margin: 0 var(--gutter);
  border: 1px solid var(--hairline);
}
.mission-cell {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.index {
  color: var(--accent);
  letter-spacing: .14em;
}

/* ---------- The Work ---------- */

.work {
  padding: var(--section-gap) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.work-lead { max-width: 440px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  margin: 0;
  position: relative;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface);
}
.tile-a { grid-column: span 5; aspect-ratio: 560 / 380; }
.tile-b { grid-column: span 3; }
.tile-c { grid-column: span 4; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-placeholder);
}
/* once a real image is in the tile, hide the bracket label */
.tile:has(img) .tile-label { display: none; }

.placeholder { background: var(--stripes); }

/* ---------- Projects + Team ---------- */

.two-col {
  padding: var(--section-gap) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 64px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}
.list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.tag {
  color: var(--accent);
  white-space: nowrap;
  align-self: start;
  padding-top: 8px;
}
.desc { grid-column: 1 / -1; }

.member {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  object-fit: cover;
  display: block;
}
.avatar.placeholder { background: var(--stripes-fine); }
.member-name { font-size: 20px; }
.member-role {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- Contact footer ---------- */

.contact {
  margin-top: var(--section-gap);
  position: relative;
  padding: var(--section-gap) var(--gutter) 40px;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 120%, var(--accent-glow-strong), transparent 70%);
}
.contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.contact-email {
  font-size: clamp(36px, 7.4vw, 108px);
  line-height: .9;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.contact-email:hover { color: var(--accent); }
.contact-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 80px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.contact-bottom a { color: var(--text-dim); }
.contact-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tile-a { grid-column: 1 / -1; }
  .tile-b, .tile-c { grid-column: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }          /* keep wordmark + pill */
  .pill { padding: 10px 16px; }
  .hero-media, .hero-fade { top: 96px; }
  .hero-content { bottom: 40px; gap: 24px; }
  .mission-cell { padding: 32px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .tile-b, .tile-c { grid-column: 1 / -1; aspect-ratio: 560 / 380; }
  .contact-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
