/* BlueHorizon institutional layer – sits on top of hub.css and careers.css */
:root { --navy: #0A1F3A; --navy2: #12345A; --gold: #C8A25A; }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--surface2); }

/* Generic sections */
.i-sec { padding: clamp(56px, 8vw, 104px) 0; }
.i-sec + .i-sec { border-top: 1px solid var(--line); }
.i-alt { background: var(--surface); }
.i-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 40px; }
.i-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.i-head p { color: var(--muted); margin: 0; max-width: 54ch; }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; color: var(--work); margin: 0 0 12px; }
.more-link { color: var(--work); font-weight: 700; text-underline-offset: 4px; }

/* Hero */
.i-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.i-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: .55; }
.i-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 58, .94) 0%, rgba(10, 31, 58, .72) 48%, rgba(10, 31, 58, .25) 100%); }
.i-hero .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 13vh, 150px); padding-bottom: clamp(72px, 12vh, 140px); }
.i-hero .eyebrow { color: #9FC3E6; }
.i-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; color: #fff; }
.i-hero .lead { color: #D9E6F3; max-width: 44ch; }
.i-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.i-hero .btn { background: #fff; color: var(--navy); }
.i-hero .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); padding: 12px 20px; }
.i-hero .btn-ghost:hover { background: #fff; color: var(--navy); }

/* Purpose */
.i-purpose { background: var(--surface); border-bottom: 1px solid var(--line); }
.i-purpose .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 40px; align-items: baseline; }
.i-purpose blockquote { margin: 0; font: 400 clamp(1.3rem, 2.3vw, 1.75rem)/1.35 var(--display); max-width: 48ch; text-wrap: pretty; }

/* Numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.nums div { padding: 22px 24px 8px 0; }
.nums div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.nums dd { margin: 0; font: 700 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.nums dt { margin-top: 10px; font-weight: 700; }
.nums span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.ctx { margin-top: 32px; padding: 18px 22px; background: var(--surface2); border-radius: 12px; font-size: .95rem; color: #1f3656; max-width: 86ch; }
.ctx a { color: var(--work); }

/* Four products */
.prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.prods li + li { border-left: 1px solid var(--line); }
.prods a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 24px; text-decoration: none; transition: background .2s; }
.prods a:hover { background: var(--surface2); }
.prods .verb { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prods b { font: 700 1.45rem/1.15 var(--display); margin: 8px 0 12px; }
.prods ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .94rem; flex: 1; }
.prods ul li { border: 0; margin-bottom: 4px; }
.status { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--work) 11%, white); color: var(--work); }
.status.plan { background: var(--surface2); color: var(--muted); }

/* Sectors */
.sects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sects a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.sects a:hover { border-color: var(--work); transform: translateY(-2px); }
.sects b { font: 700 1.15rem/1.2 var(--display); }
.sects span { color: var(--muted); font-size: .9rem; line-height: 1.45; flex: 1; }
.sects em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--work); }

/* Career explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 56px; align-items: start; }
.explorer h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.ints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-height: 220px; }
.res-h { font-weight: 700; margin-bottom: 12px; }
.res ol { list-style: none; margin: 0 0 16px; padding: 0; }
.res ol li { border-top: 1px solid var(--line); }
.res ol a { display: flex; flex-direction: column; padding: 12px 0; text-decoration: none; }
.res ol a b { font-family: var(--display); font-size: 1.1rem; }
.res ol a span { color: var(--muted); font-size: .9rem; }
.res ol a:hover b { color: var(--work); text-decoration: underline; text-underline-offset: 3px; }
.res .empty-res { color: var(--muted); margin: 0; }

/* Insights */
.ins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ins a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 20px; border-top: 4px solid var(--navy); transition: box-shadow .2s, transform .2s; }
.ins a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(12, 35, 64, .4); }
.ins .eyebrow { margin-bottom: 10px; }
.ins b { font: 700 1.35rem/1.2 var(--display); margin-bottom: 10px; }
.ins span { color: var(--muted); font-size: .95rem; flex: 1; }
.ins small { margin-top: 16px; font-size: .82rem; color: var(--muted); }

/* More from BlueHorizon */
.more-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.more-row li { border-bottom: 1px solid var(--line); }
.more-row li + li { border-left: 1px solid var(--line); }
.more-row a, .more-row div { display: block; padding: 20px 20px 20px 0; text-decoration: none; }
.more-row li + li a, .more-row li + li div { padding-left: 20px; }
.more-row b { display: block; font-family: var(--display); font-size: 1.1rem; }
.more-row span { font-size: .9rem; color: var(--muted); }
.more-row a:hover b { color: var(--work); }

/* Founder strip */
.founder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 900px; }
.founder img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.founder p { margin: 0 0 8px; }
.founder .small a { color: var(--work); margin-right: 16px; }

/* Content pages (mission, vision, methodology, products) */
.pg-head { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.pg-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.pg-head .lead { max-width: 58ch; }
.pg-body { padding-top: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.pg-body > section { max-width: 72ch; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.pg-body > section:last-child { border-bottom: 0; }
.pg-body h2 { font-size: 1.55rem; margin-bottom: 12px; }
.pg-body h3 { font-size: 1.15rem; margin: 18px 0 6px; }
.pg-body ul, .pg-body ol { padding-left: 20px; margin: 0 0 1em; }
.pg-body li { margin-bottom: 6px; }
.pg-body a { color: var(--work); text-underline-offset: 3px; }
.pg-body .wide { max-width: none; }
.big-quote { font: 400 clamp(1.35rem, 2.4vw, 1.8rem)/1.35 var(--display); border-left: 4px solid var(--navy); padding-left: 20px; margin: 0 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0 12px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--surface2); min-width: 90px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--work); }
.tbl-wrap { overflow-x: auto; }
.ext { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.ext li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; }
.ext b { font-family: var(--display); font-size: 1.1rem; }
.ext p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0 !important; }
.key li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; }
.key b { display: block; font: 700 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.key span { font-size: .92rem; color: var(--muted); }

/* Sector taxonomy page */
.tax { display: grid; gap: 16px; max-width: none !important; border: 0 !important; }
.tax article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; scroll-margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; }
.tax h2 { font-size: 1.45rem; margin-bottom: 6px; }
.tax .n { font-size: .85rem; font-weight: 700; color: var(--work); }
.tax ul { margin: 0; padding-left: 18px; }
.tax .eu { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }

/* Atlas */
.at-tools { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.at-tools label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.at-tools input, .at-tools select { font: 400 1rem var(--body); text-transform: none; letter-spacing: 0; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #b7c9dc; background: #fff; color: var(--ink); width: 100%; }
.at-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.orgs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.org { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.org b { font: 700 1.1rem/1.25 var(--display); }
.org .where { font-size: .85rem; color: var(--muted); }
.org p { font-size: .93rem; margin: 2px 0 6px; flex: 1; }
.org .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.org .tags span { font-size: .76rem; font-weight: 500; background: var(--surface2); border-radius: 99px; padding: 2px 9px; }
.org .lk { display: flex; gap: 16px; font-size: .88rem; font-weight: 700; margin-top: 6px; }
.org .lk a { color: var(--work); text-underline-offset: 3px; }
.t-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.at-more { margin-top: 20px; }

/* Footer */
.ifoot { background: var(--navy); color: #C9D7E6; padding-top: 56px; }
.ifoot a { color: #E6EEF6; }
.ifoot .fam-home { color: #fff !important; text-decoration: none; display: inline-block; margin-bottom: 12px; }
.ifoot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ifoot-about p { max-width: 40ch; font-size: .95rem; }
.ifoot .small { color: #9FB4CB; }
.ifoot nav { display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.ifoot nav a { text-decoration: none; }
.ifoot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ifoot-h { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9FB4CB; margin: 0 0 4px; }
.ifoot .foot-small { color: #9FB4CB; }
.ifoot .to-top { color: #E6EEF6; }

@media (max-width: 980px) {
  .i-head, .explorer { grid-template-columns: 1fr; }
  .prods, .sects { grid-template-columns: repeat(2, 1fr); }
  .prods li:nth-child(3) { border-left: 0; }
  .prods li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ins, .orgs { grid-template-columns: repeat(2, 1fr); }
  .more-row { grid-template-columns: repeat(2, 1fr); }
  .more-row li:nth-child(3) { border-left: 0; }
  .more-row li:nth-child(3) a, .more-row li:nth-child(3) div { padding-left: 0; }
  .ifoot-grid { grid-template-columns: 1fr 1fr; }
  .ifoot-about { grid-column: 1 / -1; }
  .at-tools { grid-template-columns: 1fr 1fr; }
  .at-tools label:first-child { grid-column: 1 / -1; }
  .tax article { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .nums div:nth-child(3) { padding-left: 0; border-left: 0; }
  .nums div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prods, .sects, .ins, .orgs, .key { grid-template-columns: 1fr; }
  .prods li + li { border-left: 0; border-top: 1px solid var(--line); }
  .more-row { grid-template-columns: 1fr; }
  .more-row li + li { border-left: 0; }
  .more-row li + li a, .more-row li + li div { padding-left: 0; }
  .i-purpose .wrap { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .at-tools { grid-template-columns: 1fr; }
  .ifoot-grid { grid-template-columns: 1fr; }
  .i-hero::after { background: linear-gradient(180deg, rgba(10, 31, 58, .9) 0%, rgba(10, 31, 58, .8) 100%); }
}
@media (max-width: 420px) { .top nav a { padding: 8px 8px; font-size: .9rem; } }
.org[hidden], .at-more[hidden] { display: none; }
@media (max-width: 620px) { .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; } }
