/* ORBiT, Objectives in Real-time Biomedical Technology LLC.
   Paper, ink, one trace-blue accent. Instrument Sans throughout. */

:root {
  --paper: #FAFAF8;
  --paper-2: #F1F2EF;
  --ink: #101418;
  --graphite: #4B5560;
  --line: #D8DCE0;
  --trace: #1D5BD8;
  --trace-soft: #B9CBF4;
  --navy: #0F1C2E;
  --navy-text: #D8DFEA;
  --max: 1080px;
  --gutter: 24px;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "tnum" 1, "ss01" 1;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--trace); color: var(--trace); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--trace); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 1em; }
p.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.muted { color: var(--graphite); }
small { font-size: 14px; color: var(--graphite); }
ul { padding-left: 1.2em; }
li { margin: 0 0 .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.wordmark img { width: 26px; height: 26px; align-self: center; display: block; }
.wordmark span.co { font-weight: 400; color: var(--graphite); font-size: 14px; display: none; }
@media (min-width: 900px) { .wordmark span.co { display: inline; } }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--graphite); font-size: 15.5px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav a.btn { margin-left: 6px; padding: 8px 14px; border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.site-nav a.btn[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); }
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--trace); }
  .site-nav .btn { margin: 14px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 15.5px; text-decoration: none; line-height: 1.2; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-family: inherit; }
.btn:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--trace); border-color: var(--trace); color: #fff; }
.btn.lg { padding: 14px 22px; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 24px 0 28px; }
.trace { display: block; width: 100%; height: 170px; margin-top: 44px; }
.trace path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.trace .old { stroke: var(--trace-soft); stroke-width: 1.5; }
.trace .new { stroke: var(--trace); stroke-width: 2; }
.trace .pen { fill: var(--trace); }
.trace .grid { stroke: var(--line); stroke-width: 1; }
.hero-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--graphite); padding: 10px 0 0; border-top: 1px solid var(--line); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--graphite); margin: 12px 0 0; }

/* Definition-style list for services */
.defs { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.defs > div { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs h3 { margin-top: 2px; }
.defs p { margin: 0 0 .7em; max-width: 66ch; }
.defs .deliv { color: var(--graphite); font-size: 15.5px; margin: 0; }
.defs .deliv strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .defs > div { grid-template-columns: 1fr; gap: 8px; } }

/* Product specimens */
.specimens { display: grid; gap: 0; }
.specimen { display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.specimen:last-child { border-bottom: 1px solid var(--line); }
.specimen .mark { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); }
.specimen .mark img { width: 100%; height: 100%; object-fit: cover; }
.specimen .mark.ajar { background: #F2F1EC; }
.specimen .mark.ajar img { width: 26px; height: 42px; object-fit: contain; }
.specimen .mark.bifocal { background: #fff; }
.specimen h3 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.specimen h3 .status { font-size: 13.5px; font-weight: 400; color: var(--graphite); }
.specimen p { margin: 8px 0 0; max-width: 62ch; }
.specimen .go { align-self: center; white-space: nowrap; }
@media (max-width: 700px) { .specimen { grid-template-columns: 64px 1fr; } .specimen .go { grid-column: 2; justify-self: start; } .specimen .mark { width: 56px; height: 56px; border-radius: 12px; } }

/* Steps (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--graphite); margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* Two-column prose */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 28px; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--graphite); }

/* Work entries */
.entry { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry .when { color: var(--graphite); font-size: 15px; line-height: 1.5; }
.entry h3 { margin-bottom: 8px; }
.entry p { max-width: 66ch; }
.entry p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; gap: 6px; } }

/* Call-out band */
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { max-width: 22ch; }

/* Forms */
form.contact { display: grid; gap: 18px; max-width: 560px; }
form.contact label { display: block; font-weight: 600; font-size: 15px; }
form.contact label input, form.contact label textarea, form.contact label select { display: block; margin-top: 6px; }
form.contact input, form.contact textarea, form.contact select { font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { border-color: var(--trace); outline: none; box-shadow: 0 0 0 3px var(--trace-soft); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .hint { font-weight: 400; color: var(--graphite); font-size: 14px; display: block; }
form.contact .hint.inline { display: inline; margin-left: 6px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-text); padding: 48px 0 40px; margin-top: 24px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; font-size: 15px; }
.site-footer .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(216,223,234,.7); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .wordmark { color: #fff; }
@media (max-width: 700px) { .site-footer .grid { grid-template-columns: 1fr; gap: 24px; } }

/* Page intro for inner pages */
.page-intro { padding: 64px 0 24px; }
.page-intro h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 20ch; }
.page-intro .lead { margin-top: 18px; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
