/* /product and everything under it. Same look as the homepage (black, Deep Caribbean blue, EB Garamond headings). */
:root {
  --bg: #000000;
  --ink: #f2f6fb;
  --body: #c3cad6;
  --muted: #8f9aad;
  --line: rgba(190,210,255,0.16);
  --accent: #0089c4;
  --accent-hover: #2aa6de;
  --accent-text: #0089c4;
  --on-accent: #050709;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --label: 'Montserrat', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--body); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; padding-inline: clamp(16px, 5vw, 64px); overflow-x: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scroll-padding-top: 70px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* top bar */
.bar { margin-inline: calc(-1 * clamp(16px, 5vw, 64px)); padding-inline: clamp(16px, 5vw, 64px); border-bottom: 1px solid #3d4046; position: sticky; top: 0; z-index: 30; background: rgba(0,0,0,.9); backdrop-filter: blur(8px); }
.bar .in { max-width: 1120px; margin: 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar .nm { font-family: var(--label); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.bar .back { font-size: .8rem; color: var(--muted); text-decoration: none; }
.bar a:hover, .bar a:focus-visible { color: var(--ink); }

.eyebrow { font-family: var(--label); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); display: block; }
.sub { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted); font-style: italic; }

/* product home: hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
.hero .summary { font-size: 1.15rem; max-width: 62ch; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; width: 100%; margin-top: 18px; }
.principles div, .principles a { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.principles b { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); font-weight: 500; line-height: 1.1; }
.principles span { font-size: .92rem; color: var(--muted); }

/* product home: topic sections */
.lead { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; scroll-margin-top: 54px; }
.lead .txt { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.lead h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.lead p { font-size: 1.1rem; max-width: 46ch; }
.lead p.sub { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.lead:not(:has(.list)) { grid-template-columns: minmax(0, 1fr); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 500; padding: 14px 22px; border-radius: 2px; border: 1px solid var(--accent); color: var(--accent-text); transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--on-accent); }

/* lists (sub-topics) */
.list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.list > a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; }
.list span { font-size: .85rem; color: var(--muted); text-align: right; max-width: 34ch; }
.list > a:after { content: '\203A'; font-size: 1.3rem; color: var(--muted); order: 3; }
.list > a:hover b, .list > a:focus-visible b { color: var(--accent-text); }

/* child pages */
.page { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 9vw, 112px); max-width: 860px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
.page .lede { font-size: 1.15rem; max-width: 60ch; margin-top: 4px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); }
.crumbs i { font-style: normal; color: var(--line); }
.video { width: 100%; aspect-ratio: 16 / 9; margin: 22px 0 14px; background: #0a0d13; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.video iframe, .video video { display: block; width: 100%; height: 100%; border: 0; }
.video .ph { height: 100%; display: grid; place-items: center; font-family: var(--label); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.block { width: 100%; padding-top: 28px; margin-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.block h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.block .list { margin-top: 4px; }
.block p, .block li { max-width: 68ch; }
.block ul, .block ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; }
.block li ul, .block li ol { margin-top: 10px; }
.block li::marker { color: var(--muted); }
.block strong { color: var(--ink); font-weight: 600; }
.block a { color: var(--accent-text); text-underline-offset: 3px; }
.block a:hover, .block a:focus-visible { color: var(--accent-hover); }
.stub { color: var(--muted); font-size: .95rem; font-style: italic; }

footer { border-top: 1px solid var(--line); padding-block: 36px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; color: var(--muted); }

/* scroll-in */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .lead { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .list span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } * { transition: none !important; } }

/* archive banner */
.archive-note { margin-top: 20px; padding: 12px 16px; border: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }
.archive-note a { color: var(--accent-text); }

/* product home v2: People / Principles / Practices */
.pillar .num { font-family: var(--label); }
.pillar .todo { font-size: .95rem; color: var(--muted); font-style: italic; max-width: 46ch; }
.principles a { text-decoration: none; }
.principles a:hover b, .principles a:focus-visible b { color: var(--accent-text); }

/* People: hiring attributes */
.attrs { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.attrs > div { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.attrs b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; line-height: 1.15; }
.attrs span { font-size: .95rem; color: var(--body); max-width: 52ch; }

/* product home: title doubles as section anchors */
.hero h1 a { text-decoration: none; transition: color .2s; }
.hero h1 a:hover, .hero h1 a:focus-visible { color: var(--accent-text); }
.hero .summary a { color: var(--accent-text); text-underline-offset: 3px; }
.hero .summary a:hover, .hero .summary a:focus-visible { color: var(--accent-hover); }

/* product home: full-width text, subtitle font, competencies sub-section */
.hero .summary { font-family: 'proxima-nova', 'Proxima Nova', var(--label); font-weight: 500; }
body.home .hero .summary, body.home .lead p, body.home .attrs span, body.home .list span { max-width: none; }
body.home .lead .txt { align-self: start; }
.lead .tl { color: var(--accent-text); text-underline-offset: 3px; }
.lead .tl:hover, .lead .tl:focus-visible { color: var(--accent-hover); }
.subsec { grid-column: 1 / -1; margin-top: 8px; padding: 28px clamp(20px, 3vw, 36px); border-left: 3px solid var(--accent); background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.subsec h3 { font-family: var(--label); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.subsec p { font-size: 1.05rem; }
.subsec .attrs { width: 100%; }
.subsec .sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

/* Link tiles: titled cards that link to sub-pages */
.links-block { border-top: 0; padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tiles > a { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 48px 22px 22px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; transition: border-color .2s; }
.tiles > a:after { content: '\2192'; position: absolute; right: 20px; top: 22px; color: var(--accent-text); }
.tiles b { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); font-weight: 500; line-height: 1.15; }
.tiles span { font-size: .9rem; color: var(--muted); }
.tiles > a:hover, .tiles > a:focus-visible { border-color: var(--accent); }
.tiles > a:hover b, .tiles > a:focus-visible b { color: var(--accent-text); }
