/* Interprito Labs — shared styles.
   Brand tokens come from the original splash page: The Gauge (blueprint arc, brass needle),
   IBM Plex Mono for the wordmark, headings and readouts, IBM Plex Sans for body text,
   sharp radii, and a faint blueprint grid. Light and dark follow the OS setting. */

:root {
  --ink: #12181f;
  --blueprint: #1b4965;
  --blueprint-bright: #4c93bd;
  --brass: #b8752e;
  --accent-strong: #8f5c24;
  --paper: #eef1f3;
  --paper-raised: #fafbfc;
  --line: #d6dce1;

  --bg: var(--paper);
  --surface: var(--paper-raised);
  --text: var(--ink);
  --text-dim: #4b5763;
  --border: var(--line);
  --mark-arc: var(--blueprint);
  --mark-needle: var(--brass);
  --accent-text: var(--accent-strong);
  --link: var(--blueprint);
  --error: #a3261c;

  --font-display: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 3px;
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: #171f28;
    --text: #e7edf2;
    --text-dim: #9aa7b2;
    --border: #2a343d;
    --mark-arc: var(--blueprint-bright);
    --accent-text: var(--brass);
    --link: var(--blueprint-bright);
    --error: #f0a39c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

/* faint blueprint grid, very low contrast */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--blueprint);
  opacity: 0.035;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }
main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }

img, svg { max-width: 100%; }

/* ---- type ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  line-height: 1.18;
}
h1 { font-size: clamp(27px, 4.6vw, 42px); letter-spacing: -0.03em; margin: 0 0 20px; max-width: 26ch; }
h2 { font-size: clamp(21px, 3.2vw, 27px); letter-spacing: -0.02em; margin: 0 0 16px; max-width: 34ch; }
h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--text-dim); max-width: 56ch; }
.lede strong { color: var(--text); font-weight: 500; }
.dim { color: var(--text-dim); }
.byline { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.02em; color: var(--text-dim); margin: 22px 0 8px; }
.byline strong { color: var(--text); font-weight: 600; }
.hero-note { max-width: 64ch; color: var(--text-dim); }

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 22px;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent);
  padding-bottom: 1px;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip {
  position: absolute; left: -10000px; top: 12px;
  background: var(--surface); color: var(--text);
  padding: 8px 12px; border: 1px solid var(--border); z-index: 20;
}
.skip:focus { left: 16px; }

/* ---- placeholders: impossible to miss in review ---- */
.ph {
  display: inline;
  font-family: var(--font-display);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  border: 2px dashed var(--brass);
  border-radius: 2px;
  padding: 0 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
}
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--link); border-color: color-mix(in srgb, var(--link) 50%, transparent); }
.btn-ghost:hover { border-color: var(--link); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-top: 18px; padding-bottom: 18px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; color: var(--text); }
.lockup svg { width: 32px; height: 32px; flex-shrink: 0; display: block; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.wordmark .sub { font-weight: 400; color: var(--brass); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.site-nav .btn { padding: 8px 14px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}
.menu-toggle .bars { width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }

@media (max-width: 759px) {
  /* Without JS the links simply wrap onto a second row. */
  .site-nav { margin-left: 0; width: 100%; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .js .site-nav a[aria-current="page"] { color: var(--accent-text); }
  .js .site-nav .btn { margin-top: 16px; width: 100%; padding: 12px 14px; }
}

/* ---- page sections ---- */
.hero { padding-top: 56px; padding-bottom: 48px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section + .section { border-top: 1px solid var(--border); }
.hero + .section { border-top: 1px solid var(--border); }
.section > .inner { max-width: var(--maxw); }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card .tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 10px;
}
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 12px; font-family: var(--font-display); font-size: 14px; }
.card .price { font-family: var(--font-display); font-size: 13px; color: var(--text); }

/* readouts: the proof numbers */
.readouts {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) { .readouts { grid-template-columns: repeat(3, 1fr); } }
.readout { background: var(--surface); padding: 22px 22px 20px; }
.readout .value {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
}
.readout p { font-size: 14px; line-height: 1.5; color: var(--text-dim); margin: 0; }
.note { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.02em; color: var(--text-dim); margin-top: 14px; }

/* numbered principles (from the original splash page) */
.principles { display: grid; gap: 30px; }
@media (min-width: 820px) { .principles.row { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 820px) { .principles.two { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; max-width: 62ch; }
.principle .idx { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--accent-text); padding-top: 3px; letter-spacing: 0.04em; }
.principle p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-dim); }

/* lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 68ch; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 2px; background: var(--brass); }

/* two-column text split */
.split { display: grid; gap: 28px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* discovery / price block */
.facts-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.facts-strip li {
  font-family: var(--font-display);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 11px;
}
.panel {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
}
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--text-dim); font-size: 15px; }

/* founder / "who you'll work with" */
.founder { display: grid; gap: 24px; align-items: start; }
@media (min-width: 640px) { .founder:has(> .headshot) { grid-template-columns: 180px 1fr; gap: 32px; } }
.headshot {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--brass);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brass) 7%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}
.headshot .ph { border: 0; background: none; padding: 0; }
.founder .role { font-family: var(--font-display); font-size: 13px; color: var(--text-dim); margin: -4px 0 14px; }
.founder .ticks { font-size: 15px; margin-bottom: 16px; }
.founder blockquote { margin: 0 0 16px; padding: 0; font-size: 15px; color: var(--text); }

/* definition list of company facts */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--border); max-width: 720px; }
.facts div { display: grid; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .facts div { grid-template-columns: 200px 1fr; } }
.facts dt { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.facts dd { margin: 0; }
address { font-style: normal; }

/* track-record entries */
.case { border-top: 1px solid var(--border); padding-top: 22px; }
.case .tag { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.case dd { margin: 0 0 4px; max-width: 64ch; }

/* product lockup + badge */
.product-lockup { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 28px; }
.product-lockup svg { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.product-lockup .wordmark { font-size: 24px; }
.badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.badge .dot, .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 22%, transparent);
  display: inline-block;
}

/* closing call to action */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px 28px;
}
@media (max-width: 420px) { .cta-band { padding: 24px 18px; } }
.cta-band .actions { margin-top: 20px; }

/* ---- contact form ---- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--text); }
.field .hint { font-weight: 400; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text-dim) 45%, var(--border));
  border-radius: var(--radius);
  padding: 10px 12px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.consent { font-size: 14px; color: var(--text-dim); margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border: 1px solid var(--border); border-left: 3px solid var(--link); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; max-width: 620px; }
.alert p { margin: 0; }
.alert-error { border-left-color: var(--error); }
.alert-error strong { color: var(--error); }
.form-status[hidden] { display: none; }

/* Shown when the no-JS path redirects back to /contact/#send-error */
#send-error { display: none; margin-bottom: 20px; }
#send-error:target { display: block; }

/* ---- footer ---- */
.site-footer { margin-top: 56px; }
.site-footer .wrap {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .legal { margin: 0; max-width: none; }

/* Headroom: a consumer product, endorsed by Interprito Labs but not styled like it.
   The site's chrome stays; the product accent is Headroom's own emerald. */
.headroom {
  --product: #0e6b50; --product-strong: #0a5540; --amber: #e0a15c;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  font-family: var(--font-body);
}
@media (prefers-color-scheme: dark) { .headroom { --product: #4fcfa2; --product-strong: #7fdcbb; --amber: #f2bc6a; } }
/* Headroom's own surfaces (cool near-neutrals, no blueprint grid); the header and footer keep Interprito's type */
body:has(main.headroom) { --bg: #f5f6f7; --surface: #ffffff; --text: #111417; --text-dim: #5a6168; --border: #e1e4e7; }
@media (prefers-color-scheme: dark) {
  body:has(main.headroom) { --bg: #0e1011; --surface: #181b1d; --text: #eceff1; --text-dim: #9ba3aa; --border: #2a2e31; }
}
body:has(main.headroom)::before { display: none; }
.headroom h1, .headroom h2, .headroom h3 { font-weight: 700; letter-spacing: -0.02em; }
.headroom .wordmark { font-weight: 700; letter-spacing: -0.02em; }
.headroom .btn { border-radius: 999px; }
.headroom .section-label, .headroom .badge, .headroom .endorse { letter-spacing: 0.06em; }
.headroom .badge .dot { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); }
.headroom .section-label, .headroom .idx, .headroom .card .tag { color: var(--product); }
.btn-product { background: var(--product); border-color: var(--product); color: #fff; }
.btn-product:hover { background: var(--product-strong); border-color: var(--product-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-product, .btn-product:hover { color: var(--ink); } }
.app-icon { width: 48px; height: 48px; border-radius: 22%; display: block; }
.product-lockup.small { margin-bottom: 16px; }
.product-lockup.small .wordmark { font-size: 20px; }
.product-lockup.small svg, .product-lockup.small .app-icon { width: 36px; height: 36px; }
.endorse { font-family: var(--font-display); font-size: 13px; color: var(--text-dim); margin-top: 20px; }
.hero-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-split { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.hero-media video, .film video { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.hero-media { max-width: 440px; justify-self: center; width: 100%; }
@media (min-width: 820px) { .headroom .principles.row { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
