/* ==========================================================================
   BII | Business Intelligence & Insights
   Bellow International Inc: site stylesheet
   ========================================================================== */

:root {
  --ink:        #16191C;
  --ink-soft:   #2C3237;
  --slate:      #6B7480;
  --slate-pale: #9AA1AB;
  --red:        #E03B2E;
  --red-deep:   #B92C21;
  --red-wash:   #FDECEA;
  --steel:      #F2F4F5;
  --steel-line: #DCE0E4;
  --paper:      #FFFFFF;

  --measure: 64ch;
  --shell: 1240px;
  --gutter: 32px;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* ---------- Masthead ---------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--steel-line); background: var(--paper); }

.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 88px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}

.brand img { width: 250px; }

.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--steel-line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- Hero -------------------------------------------------------- */

.hero { padding: 104px 0 0; }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.032em;
  margin: 0 0 28px;
  max-width: 15ch;
}

.hero .lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  font-weight: 400;
}

.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.hero-flex .hero-text { flex: 1 1 520px; }
.hero-flex .hero-text h1, .hero-flex .hero-text .lede { max-width: none; }
.hero-flex .hero-text h1 { max-width: 16ch; }

.hero-graphic { flex: 0 0 400px; max-width: 400px; align-self: center; }
.hero-graphic svg { width: 100%; height: auto; display: block; }

/* Inner-page hero: tighter */
.hero.compact { padding-top: 88px; }
.hero.compact h1 { font-size: clamp(38px, 5vw, 64px); }

/* ---------- Stat strip -------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel-line);
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
  margin-top: 96px;
}
.stats div { background: var(--paper); padding: 30px 28px 32px; }
.stats .fig {
  display: block;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.stats .fig em { font-style: normal; color: var(--red); }
.stats .cap { display: block; font-size: 14px; color: var(--slate); line-height: 1.45; }

/* ---------- Chronology -------------------------------------------------- */

.chron {
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0; list-style: none;
}
.chron li { padding: 26px 36px 0 0; position: relative; }
.chron .icon { display: block; width: 30px; height: 30px; margin-bottom: 16px; }
.chron .yr {
  display: block; font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--slate); margin-bottom: 8px;
}
.chron .era {
  display: block; font-size: 20px; font-weight: 600;
  letter-spacing: -0.014em; margin-bottom: 8px;
}
.chron p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--slate); max-width: 34ch; }

/* ---------- Sections ---------------------------------------------------- */

.band { padding: 104px 0; }
.band.steel { background: var(--steel); }
.band.tight { padding-top: 0; }

.band h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.026em;
  margin: 0 0 22px;
  max-width: 20ch;
}

.band h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.band p { max-width: var(--measure); color: var(--ink-soft); }
.band p.muted { color: var(--slate); }

/* Section head: label + heading + intro, in a two-column split */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 8px;
}
.sec-head h2 { margin-bottom: 0; }
.sec-head p { margin: 6px 0 0; max-width: 52ch; }

.label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 18px;
}

/* ---------- Capability list --------------------------------------------- */

.caps { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--steel-line); }
.caps li {
  border-bottom: 1px solid var(--steel-line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 56px minmax(220px, 300px) 1fr;
  gap: 28px;
  align-items: start;
  transition: background .15s ease;
}
.caps li:hover { background: var(--steel); }
.caps .num {
  font-family: var(--mono); font-size: 13px; color: var(--slate);
  padding-top: 4px;
}
.caps h3 { margin: 0; }
.caps p { margin: 0; font-size: 16px; color: var(--slate); max-width: 60ch; }

.cap-head { display: flex; align-items: center; gap: 12px; }
.cap-head .icon { width: 26px; height: 26px; flex: none; }
.cap-head h3 { margin: 0; }

/* ---------- Pillars ----------------------------------------------------- */

.pillars {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--steel-line);
  border: 1px solid var(--steel-line);
}
.pillars li {
  background: var(--paper);
  padding: 30px 28px 32px;
  position: relative;
  transition: background .15s ease;
}
.pillars li:hover { background: var(--red-wash); }
.pillars .pnum {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--mono); font-size: 12px; color: var(--slate-pale);
}
.pillars .picon { display: block; width: 34px; height: 34px; margin-bottom: 20px; }
.pillars .pname {
  display: block; font-size: 17px; font-weight: 600;
  letter-spacing: -0.012em; margin-bottom: 8px;
}
.pillars .pdesc { display: block; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.band.steel .pillars li { background: var(--steel); }
.band.steel .pillars li:hover { background: var(--red-wash); }

/* ---------- Ink section (dark contrast) --------------------------------- */

.band.ink { background: var(--ink); color: #fff; }
.band.ink h2 { color: #fff; }
.band.ink p { color: #B9C0C7; }
.band.ink .label { color: #FF7A6E; }
.band.ink .pillars { background: #2C3237; border-color: #2C3237; }
.band.ink .pillars li { background: var(--ink); color: #E6E9EB; }
.band.ink a { color: #FF9A90; }

/* ---------- Call to action ---------------------------------------------- */

.cta { border-left: 3px solid var(--red); padding: 6px 0 6px 30px; margin: 64px 0 0; }
.cta p { margin: 0 0 18px; font-size: clamp(19px, 2vw, 24px); max-width: 44ch; line-height: 1.35; font-weight: 500; letter-spacing: -0.014em; }

.btn {
  display: inline-block; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 15px 30px; border-radius: 2px;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.band.ink .btn { background: var(--red); }
.band.ink .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Contact ----------------------------------------------------- */

.contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px; margin-top: 56px; max-width: 900px;
}
.contact-grid dt { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 8px; font-family: var(--mono); letter-spacing: 0.04em; }
.contact-grid dd { margin: 0 0 32px; font-size: 19px; line-height: 1.5; }
.contact-grid dd:last-child { margin-bottom: 0; }

/* ---------- Footer ------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--steel-line);
  padding: 64px 0 72px;
  font-size: 15px;
  color: var(--slate);
}
.foot .shell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.foot a { color: var(--slate); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { margin: 0 0 6px; max-width: none; }
.foot .fname { color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.foot h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--slate-pale); font-weight: 500; margin: 0 0 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }

/* ---------- Core IP: plane diagram -------------------------------------- */

.diagram-frame {
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 32px 24px;
  margin: 56px 0 0;
  background: var(--paper);
  overflow-x: auto;
}
.diagram-frame svg { width: 100%; min-width: 720px; height: auto; display: block; }
.diagram-caption { color: var(--slate); font-size: 13px; text-align: center; margin: 20px 0 0; }

.dual-note { border-left: 3px solid var(--red); padding: 2px 0 2px 24px; margin: 40px 0 0; max-width: var(--measure); }
.dual-note p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.dual-note p + p { margin-top: 10px; color: var(--slate); font-size: 15px; }

.layer-list { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--steel-line); counter-reset: layer; }
.layer-list li {
  counter-increment: layer;
  border-bottom: 1px solid var(--steel-line);
  padding: 26px 0 26px 60px;
  position: relative;
}
.layer-list li::before {
  content: counter(layer);
  position: absolute; left: 0; top: 24px;
  width: 30px; height: 30px;
  border: 1px solid var(--steel-line); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--slate);
}
.band.ink .layer-list { border-color: #2C3237; }
.band.ink .layer-list li { border-color: #2C3237; }
.band.ink .layer-list li::before { border-color: #3A4147; color: var(--slate-pale); }
.band.ink .layer-list h3 { color: #fff; }
.band.ink .layer-list p { color: #B9C0C7; }
.layer-list h3 { margin: 0 0 8px; font-size: 18px; }
.layer-list p { margin: 0; font-size: 15px; color: var(--slate); max-width: 58ch; }
.layer-list .owner {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--red-deep); margin-bottom: 10px;
}
.band.ink .layer-list .owner { color: #FF7A6E; }

.evidence-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.evidence-row span {
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--steel-line); border-radius: 3px; padding: 9px 14px;
}
.band.ink .evidence-row span { color: #E6E9EB; border-color: #3A4147; }

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .foot .shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding-top: 64px; }
  .hero-graphic { flex: 0 0 240px; max-width: 240px; order: 2; margin: 8px auto 0; }
  .hero-flex { justify-content: center; }
  .chron { grid-template-columns: 1fr; border-top: 0; }
  .chron li { border-top: 2px solid var(--steel-line); padding: 22px 0 32px; }
  .chron li:last-child { border-top-color: var(--ink); padding-bottom: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .caps li { grid-template-columns: 36px 1fr; gap: 16px; }
  .caps p { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .band { padding: 72px 0; }
  .stats { margin-top: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --gutter: 22px; }
  .hero-graphic { max-width: 180px; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .masthead .shell { min-height: 0; }
  .brand img { width: 205px; }
  .nav { gap: 18px; font-size: 14px; }
  .foot .shell { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 56px 0; }
  .cta { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Consecutive plain bands shouldn't double their padding */
.band:not(.steel):not(.ink) + .band:not(.steel):not(.ink) { padding-top: 0; }

/* Timeline graphic (About) */
.timeline-frame { margin: 52px 0 0; overflow-x: auto; }
.timeline-frame svg { width: 100%; min-width: 660px; height: auto; display: block; }
