/* Ambitious Bio, website refresh draft. Built to the locked brand guide:
   Bone Paper ground, Corpus Blue primary, Vivid Orange for data emphasis,
   Archivo for display and text, IBM Plex Mono for labels and buttons,
   White Bar header, White Bar Plates, squared mono buttons,
   taller rounded Archivo form fields. */

@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-400.ttf'); font-weight: 400; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-500.ttf'); font-weight: 500; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-600.ttf'); font-weight: 600; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-700.ttf'); font-weight: 700; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-800.ttf'); font-weight: 800; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-Italic-500.ttf'); font-weight: 500; font-style: italic; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-400.ttf'); font-weight: 400; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-500.ttf'); font-weight: 500; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-600.ttf'); font-weight: 600; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/PlexMono-700.ttf'); font-weight: 700; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/Newsreader-500.ttf'); font-weight: 500; }

:root {
  --bone: #FAF5EA;
  --blue: #0B4EA2;
  --orange: #E86A17;
  --ink: #22303C;
  --coral: #EFA08C;
  --gray: #6B6252;
  --hair: #DDD2BC;
  --white: #FFFFFF;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', sans-serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'Plex Mono', monospace; }

/* ---------- header: the White Bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 1px 0 var(--hair);
}
.header-in {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px; flex-wrap: wrap;
}
.wordmark {
  font-weight: 800; font-size: 24px; letter-spacing: .04em;
  color: var(--blue); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  font-weight: 700; font-size: 15px; letter-spacing: .12em;
  color: var(--ink); text-decoration: none; padding: 8px 10px;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .sep { color: var(--gray); font-weight: 400; }

/* ---------- buttons: squared, IBM Plex Mono ---------- */
.btn {
  display: inline-block;
  font-family: 'Plex Mono', monospace; font-weight: 600;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 16px 26px; border-radius: 0;
  border: 2px solid var(--blue); cursor: pointer; text-align: center;
}
.btn-fill { background: var(--blue); color: var(--white); }
.btn-fill:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { background: var(--white); color: var(--blue); }
.btn-line:hover { background: var(--bone); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 30px; }
.eyebrow {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 15px;
  letter-spacing: .14em; color: var(--blue); text-transform: uppercase;
}
.hero h1 {
  font-weight: 800; font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04; letter-spacing: -.015em; max-width: 13em; margin: 18px 0 22px;
}
.hero .lead { font-size: 20px; font-weight: 500; max-width: 36em; color: var(--ink); }
.hero .lead + .lead { margin-top: 14px; font-size: 18px; font-weight: 400; color: var(--gray); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 46px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border: 2px solid var(--hair); margin-bottom: 54px;
}
.stat { padding: 22px 24px; border-left: 2px solid var(--hair); }
.stat:first-child { border-left: none; }
.stat .num { font-weight: 800; font-size: 34px; color: var(--blue); line-height: 1.1; }
.stat .num em { font-style: normal; color: var(--orange); }
.stat .lab {
  font-family: 'Plex Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 6px;
}

/* ---------- plates ---------- */
.plate { background: var(--white); border: 2px solid var(--hair); }
.plate .ph { overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-hero .ph { aspect-ratio: 2.25; }
.plate .bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 2px solid var(--hair); padding: 13px 20px;
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 16px;
  letter-spacing: .08em; color: var(--blue);
}
.plate .bar .side { font-weight: 500; font-size: 13px; color: var(--gray); letter-spacing: .1em; }
.caption {
  font-family: 'Newsreader', serif; font-size: 17px; color: var(--gray);
  margin-top: 12px;
}

/* ---------- sections ---------- */
section.block { padding: 64px 0 10px; }
.sec-head { margin-bottom: 28px; }
.sec-head .num {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 16px;
  color: var(--orange); letter-spacing: .1em;
}
.sec-head h2 {
  font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.01em;
  border-bottom: 3px solid var(--hair); padding-bottom: 14px; margin-top: 4px;
}
.sec-intro { font-size: 18px; max-width: 44em; margin-bottom: 30px; }
.sec-intro + .sec-intro { margin-top: -16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 2px solid var(--hair); padding: 26px 24px;
}
.card .tag {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 13px;
  letter-spacing: .12em; color: var(--blue); text-transform: uppercase;
}
.card h3 { font-weight: 700; font-size: 21px; margin: 10px 0 8px; }
.card p { font-size: 16px; color: var(--gray); }
.card .when {
  display: inline-block; margin-top: 14px; font-family: 'Plex Mono', monospace;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; padding: 4px 9px;
}
.when-now { background: var(--blue); color: var(--white); }
.when-next { background: #FBE8D8; color: var(--ink); }

.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plate-grid .plate .ph { aspect-ratio: 3 / 2; }
.plate-grid .caption { margin-bottom: 8px; }

/* ---------- data ---------- */
.fig {
  background: var(--white); border: 2px solid var(--hair); padding: 30px 34px 26px;
  margin-bottom: 26px;
}
.fig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.fig-title {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 16px;
  letter-spacing: .1em; color: var(--blue);
}
.fig-note {
  font-family: 'Plex Mono', monospace; font-weight: 500; font-size: 13px;
  letter-spacing: .1em; color: var(--orange);
}
.fig-sub { font-size: 16px; color: var(--gray); margin: 10px 0 22px; max-width: 46em; }
.bar-row { display: grid; grid-template-columns: 168px 1fr 74px 64px; align-items: center; gap: 14px; margin-bottom: 13px; }
.bar-row .tissue { font-weight: 500; font-size: 16px; }
.bar-track { display: flex; height: 24px; }
.bar-hpa { background: #9C9480; }
.bar-add { background: var(--blue); }
.bar-total { font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 15px; text-align: right; }
.bar-pct { font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 15px; color: var(--blue); text-align: right; }
.legend { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.legend span {
  font-family: 'Plex Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; color: var(--gray); display: inline-flex; align-items: center; gap: 8px;
}
.sw { width: 14px; height: 14px; display: inline-block; }
.fig-foot {
  border-top: 2px solid var(--hair); margin-top: 20px; padding-top: 14px;
  font-family: 'Newsreader', serif; font-size: 16.5px; color: var(--gray);
}

table.scale { width: 100%; border-collapse: collapse; font-size: 17px; }
table.scale th {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 14px;
  letter-spacing: .1em; color: var(--blue); text-align: right; padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}
table.scale th:first-child { text-align: left; }
table.scale td { padding: 13px 0; border-bottom: 2px solid var(--hair); text-align: right; font-family: 'Plex Mono', monospace; font-weight: 500; font-size: 16px; color: var(--gray); }
table.scale td:first-child { text-align: left; font-family: 'Archivo', sans-serif; font-weight: 500; color: var(--ink); }
table.scale td.grow { color: var(--orange); font-weight: 700; }
table.scale tr.hl td { background: #FDF3E7; }
.data-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }

/* ---------- company / applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; margin-bottom: 26px; }
.about-grid p { font-size: 18px; margin-bottom: 14px; }
.fact-list { background: var(--white); border: 2px solid var(--hair); padding: 24px 26px; }
.fact-list .tag {
  font-family: 'Plex Mono', monospace; font-weight: 600; font-size: 13px;
  letter-spacing: .12em; color: var(--blue); text-transform: uppercase;
}
.fact-list dl { margin-top: 12px; }
.fact-list dt {
  font-family: 'Plex Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; color: var(--gray); text-transform: uppercase; margin-top: 14px;
}
.fact-list dd { font-weight: 600; font-size: 17px; margin-top: 2px; }

/* ---------- contact: taller, rounded Archivo fields ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.contact-copy p { font-size: 18px; margin-bottom: 14px; }
.contact-copy .mail { font-weight: 700; font-size: 20px; }
form.access { background: var(--white); border: 2px solid var(--hair); padding: 30px 30px 26px; }
form.access label {
  display: block; font-weight: 700; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 8px;
}
form.access .field { margin-bottom: 20px; }
form.access input, form.access textarea {
  width: 100%; font-family: 'Archivo', sans-serif; font-size: 17px; color: var(--ink);
  background: var(--white); border: 2px solid #B9AE97; border-radius: 12px;
  padding: 17px 18px; min-height: 62px; appearance: none;
}
form.access textarea { min-height: 132px; resize: vertical; }
form.access input:focus, form.access textarea:focus { outline: none; border: 3px solid var(--blue); padding: 16px 17px; }
form.access .btn { width: 100%; }
.form-note { font-size: 14.5px; color: var(--gray); margin-top: 14px; }

/* ---------- footer ---------- */
footer { margin-top: 84px; border-top: 3px solid var(--hair); padding: 34px 0 44px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.foot-in .wm { font-weight: 800; font-size: 19px; color: var(--blue); letter-spacing: .04em; }
.foot-in .fm {
  font-family: 'Plex Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; color: var(--gray); text-transform: uppercase;
}
.foot-in a { text-decoration: none; }
.foot-in a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .apps, .plate-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 2px solid var(--hair); }
  .stat:nth-child(-n+2) { border-top: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 118px 1fr 62px 54px; gap: 10px; }
}
@media (max-width: 600px) {
  .cards, .apps, .plate-grid { grid-template-columns: 1fr; }
  .header-in { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: 46px; }
  .fig { padding: 22px 18px; }
  table.scale { font-size: 15px; }
  table.scale td { font-size: 14px; }
  .bar-row {
    grid-template-columns: 1fr auto auto; gap: 4px 12px; margin-bottom: 16px;
    grid-template-areas: "tissue total pct" "track track track";
  }
  .bar-row .tissue { grid-area: tissue; }
  .bar-row .bar-track { grid-area: track; }
  .bar-row .bar-total { grid-area: total; }
  .bar-row .bar-pct { grid-area: pct; }
}
