/* palette: dark slate, soldermask green, ENIG gold */
:root {
  --bg: #131a21;
  --panel: #1b242d;
  --line: #2a3642;
  --text: #e2e8ee;
  --muted: #98a6b3;
  --green: #3a9a63;
  --green-dim: rgba(58, 154, 99, 0.14);
  --gold: #d2aa4e;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--gold); }

/* --- header --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand em { font-style: normal; color: var(--gold); margin-left: 0.3rem; }

.mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}

.mark .fill { fill: var(--gold); stroke: none; }

nav a {
  margin-left: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover, nav a.active { color: var(--text); }

/* --- hero: faint grid like a scope screen, fading out downwards --- */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 26, 33, 0) 0%, var(--bg) 100%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2rem 2rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 34ch;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: 0; }

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

.button {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover { filter: brightness(1.12); }

.link { color: var(--muted); text-decoration: none; }
.link:hover { color: var(--text); }

/* --- sections --- */
section.wrap { padding-top: 4rem; }

h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
}

.num::after { content: " /"; color: var(--line); }

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card:hover { border-color: var(--green); }

.card h3 { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); }

/* icons: green outlines with gold pads, like an ENIG board */
.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .fill { fill: var(--gold); stroke: none; }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .points { grid-template-columns: 1fr 1fr; }
}

.points li {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: var(--green-dim);
  color: var(--muted);
}

.points strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

.cta { padding-bottom: 1rem; }

/* --- contact page --- */
.contact { display: grid; gap: 3rem; }

@media (min-width: 44rem) {
  .contact { grid-template-columns: 3fr 2fr; }
}

.details h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.details p { margin: 0 0 1.5rem; color: var(--muted); }

/* --- form --- */
form { display: grid; gap: 1rem; max-width: 40rem; }

.row { display: grid; gap: 1rem; }

@media (min-width: 44rem) {
  .row { grid-template-columns: 1fr 1fr; }
}

label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }

input, textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--text);
  padding: 0.6rem 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

input:focus, textarea:focus { outline: none; border-color: var(--green); }

button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

button:hover { filter: brightness(1.12); }

/* honeypot: present for bots, invisible and unreachable for people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: var(--green-dim);
}

.error { color: #f08a8a; font-size: 0.85rem; }

/* --- gallery (lab photos) --- */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.caption { margin: 0.75rem 0 0; font-style: italic; color: var(--muted); }

/* --- footer --- */
main { padding-bottom: 5rem; }

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer strong { color: var(--text); }

.small { font-size: 0.8rem; }
