/* proml.com — dark lab direction, amber accent */

:root {
  --bg: #111110;
  --panel: #1a1916;
  --line: #26241f;
  --line-2: #363329;
  --text: #f0efec;
  --muted: #a09a8e;
  --faint: #6b665e;
  --amber: #f0be00;
  --amber-hi: #ffd23d;
  --input: #171614;
  --pad-x: 56px;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.grid-bg {
  background-image: linear-gradient(var(--panel) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel) 1px, transparent 1px);
  background-size: 48px 48px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo em { font-style: normal; color: var(--amber); }

.site-nav {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--amber); }

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  background: var(--amber);
  color: var(--bg);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: var(--amber-hi); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover { background: transparent; border-color: var(--amber); color: var(--amber); }

.btn-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
}

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

.hero {
  padding: 100px var(--pad-x) 84px;
  border-bottom: 1px solid var(--line);
}

.hero.compact { padding: 88px var(--pad-x) 72px; }

.hero .kicker { display: block; margin-bottom: 26px; }

.hero h1 {
  font-weight: 700;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 900px;
}

.hero.compact h1 { font-size: 60px; max-width: 860px; }

.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 36px 0 0;
}

.hero .actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- sections ---------- */

.section {
  padding: 72px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.section.tight { padding: 64px var(--pad-x); }

.section > .kicker { display: block; margin-bottom: 20px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
  gap: 16px;
}

.mono-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.mono-link:hover { color: var(--amber); }

.section h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 760px;
}

.section .sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---------- feature tiles (1px-gap grid) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  background: var(--bg);
  padding: 32px;
  transition: background 0.15s;
}

.tile:hover { background: var(--panel); }

.tile .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 16px;
}

.tile h3 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }

.tile p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- case cards ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.case-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.15s;
}

.case-card:hover { background: var(--panel); }

.case-card figure { margin: 0; border-bottom: 1px solid var(--line); overflow: hidden; }

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-card .body { padding: 24px; }

.case-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 10px;
}

.case-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }

.case-card p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }

/* horizontal case rows (cases page) */

.cases-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
  gap: 22px;
}

.case-row {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.15s;
}

.case-row:hover { background: var(--panel); }

.case-row .body { flex: 1; padding: 26px 28px; }

.case-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 14px;
}

.case-row h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }

.case-row p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }

.case-row .stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
}

.case-row figure {
  flex: 0 0 42%;
  margin: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.case-row img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.case-row img.from-left { object-position: left; }

.cases-cta {
  grid-column: 1 / -1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cases-cta h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }

.cases-cta p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat { padding: 28px 32px; border-right: 1px solid var(--line); }

.stat:last-child { border-right: 0; }

.stat .num { font-size: 32px; font-weight: 700; color: var(--amber); }

.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 12px;
}

.step h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }

.step p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- split columns ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.split h3 { font-size: 24px; font-weight: 600; margin: 0 0 14px; line-height: 1.3; }

.split p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

.split .kicker { display: block; margin-bottom: 20px; }

.split .split-spacer { visibility: hidden; }

@media (max-width: 900px) {
  .split .split-spacer { display: none; }
}

.split-bordered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.split-bordered > div { padding: 64px var(--pad-x); }

.split-bordered > div:first-child { border-right: 1px solid var(--line); }

.split-bordered .kicker { display: block; margin-bottom: 18px; }

.split-bordered p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- about: team ---------- */

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.team h3 { font-size: 26px; font-weight: 600; margin: 0 0 16px; line-height: 1.35; }

.team p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
}

.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-photos img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.team-photos img.wide { grid-column: span 2; object-position: 70% 45%; }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 88px var(--pad-x);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cta-band.tight { padding: 80px var(--pad-x); }

.cta-band h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.cta-band.tight h2 { font-size: 40px; margin-bottom: 14px; }

.cta-band p { font-size: 16px; color: var(--muted); margin: 0 0 32px; }

.cta-band .btn { padding: 15px 36px; }

/* ---------- contacts ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}

.contact-intro {
  padding: 88px var(--pad-x);
  border-right: 1px solid var(--line);
}

.contact-intro .kicker { display: block; margin-bottom: 24px; }

.contact-intro h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.contact-intro .lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.contact-details dt { color: var(--faint); display: inline; }

.contact-details dd { display: inline; margin: 0; }

.contact-details a { color: var(--amber); }

.contact-details a:hover { color: var(--amber-hi); }

.contact-form-wrap { padding: 88px var(--pad-x); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 440px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--input);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px;
}

.field input { height: 44px; }

.field textarea { height: 120px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

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

.data-options { display: flex; gap: 10px; flex-wrap: wrap; }

.data-option {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.data-option:hover,
.data-option[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }

.form-note {
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

/* Honeypot: off-screen for humans, present in the DOM for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.form-status.is-ok {
  color: var(--amber);
  border-color: var(--amber);
}
.form-status.is-error {
  color: #ff6b5e;
  border-color: #ff6b5e;
}

.contact-form.is-sending .btn { opacity: .6; pointer-events: none; }

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

.legal {
  padding: 64px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.legal-body { max-width: 760px; }

.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}

.legal-body > :first-child { margin-top: 0; }

.legal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal-body li::marker { color: var(--amber); }

.legal-body a { color: var(--amber); }

.legal-body a:hover { color: var(--amber-hi); }

.legal-body .effective {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  margin-top: 40px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px var(--pad-x);
  font-size: 13px;
  color: var(--faint);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.site-footer .logo {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--text);
}

.site-footer .meta { display: flex; gap: 24px; flex-wrap: wrap; }

.site-footer a:hover { color: var(--amber); }

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

@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
  .hero h1 { font-size: 56px; }
  .hero.compact h1 { font-size: 48px; }
  .contact-intro h1 { font-size: 42px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-bordered { grid-template-columns: 1fr; }
  .split-bordered > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-intro { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-header { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
  }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .hero.compact h1 { font-size: 36px; }
  .section, .section.tight { padding-top: 48px; padding-bottom: 48px; }
  .section h2 { font-size: 30px; }
  .cta-band, .cta-band.tight { padding-top: 56px; padding-bottom: 56px; }
  .cta-band h2, .cta-band.tight h2 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .contact-intro, .contact-form-wrap { padding-top: 56px; padding-bottom: 56px; }
  .contact-intro h1 { font-size: 34px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .case-row { flex-direction: column; }
  .case-row figure { flex: none; border-left: 0; border-top: 1px solid var(--line); order: 2; }
  .case-row img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}
