/* ---- fonts (self-hosted) ---- */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens ---- */

:root {
  --void: #08090A;
  --line: #23282B;
  --dim: #5A6165;
  --mid: #98A0A5;
  --bright: #F0F2F3;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--mid);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2.25rem;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

h1 {
  margin: 0 0 2.25rem;
  font-size: clamp(2.2rem, 6.5vw, 4.25rem);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.005em;
  line-height: 0.95;
  color: var(--bright);
  text-transform: uppercase;
}

.spec {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0 0 3rem;
  color: var(--mid);
}

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

.about {
  max-width: 46ch;
  margin: 0 0 3rem;
}
.about p { margin: 0 0 1.1rem; }
.about p:last-child { margin-bottom: 0; }
.about em { font-style: normal; color: var(--bright); }

.spec a, .about a {
  color: var(--bright);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
}
.spec a:hover, .about a:hover { border-color: var(--bright); }

.mail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--bright);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
  padding-bottom: 3px;
}
.mail:hover { border-color: var(--bright); }

a:focus-visible { outline: 1px solid var(--bright); outline-offset: 5px; }

.terrain { position: relative; margin: 0; }

.terrain canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
}
.terrain canvas:active { cursor: grabbing; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.notice {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin: 0;
}

/* ---- footer links ---- */

.links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }

.lang {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--dim);
}
.lang a {
  color: var(--dim);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.lang a:hover { color: var(--bright); }
.lang a[aria-current] { color: var(--bright); border-color: var(--dim); }

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; gap: 3.5rem; }
  .terrain { order: 2; max-width: 440px; }
}

@media (max-width: 640px) {
  .page { padding: 2rem 1.25rem 1.5rem; }
  main { padding: 1.5rem 0 3rem; }
}

/* ---- home: long page ---- */

.home main { display: block; padding: 0; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.mark {
  font-size: 1.05rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bright);
  text-decoration: none;
}
.top-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mid);
  text-decoration: none;
}
.top-cta:hover { color: var(--bright); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 6rem;
}

.home h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-transform: none;
  max-width: 18ch;
}
.home .spec { margin-bottom: 2.5rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--bright);
  color: var(--void);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--bright);
}
.btn:hover { background: transparent; color: var(--bright); }

.block {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--line);
}

.label {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.9;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 3rem;
}

.item h3, .person h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bright);
}
.item p, .person p { margin: 0 0 0.9rem; max-width: 46ch; }
.item p:last-child, .person p:last-child { margin-bottom: 0; }

.proof {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--dim);
}
.proof span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.15rem;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 2.75rem 3rem;
}

/* Photos: same crop and treatment for everyone. */
.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 1.1rem;
  background: #111416;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.li a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
}
.li a:hover { color: var(--bright); border-color: var(--bright); }

.closing .lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--bright);
}
.where {
  margin: 2rem 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* Draft placeholders: loud on purpose, so none ship by accident. */
mark.ph {
  background: none;
  color: #E3B341;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  outline: 1px dashed #E3B341;
  outline-offset: 2px;
}

/* ---- legal ---- */

.legal { max-width: 68ch; padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bright);
}
.legal p, .legal ul { margin: 0 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--dim); }
.legal a:hover { border-color: var(--bright); }
.legal .updated { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--dim); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 4rem; }
  .hero .terrain { max-width: 440px; }
  .block { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 2rem 0 2rem; gap: 1rem; }
  .hero .terrain { max-width: 300px; margin: 0 auto; }
  .block { padding: 2.5rem 0 3rem; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .closing .lead { font-size: 1.2rem; }
}

.intro { margin: 0 0 2.5rem; max-width: 52ch; color: var(--bright); font-size: 1.1rem; }
