/* ============================================================
   NOVAE RATIO — Components
   ============================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  border-radius: var(--radius);
}
.btn--primary   { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--outline   { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost     { background: transparent; color: var(--ink-3); border-color: transparent; padding-left: 0; }
.btn--ghost:hover { color: var(--ink); }
.btn-arrow::after { content: ' →'; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-header .section-link {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.section-header .section-link:hover { color: var(--ink); }
.section-intro {
  max-width: 680px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: var(--sp-4);
}
.breadcrumbs a { text-decoration: none; color: var(--ink-4); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs__sep { opacity: 0.4; }

/* ── Tags ── */
.tag {
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  white-space: nowrap;
  border-radius: var(--radius);
}

/* ── Capability grid ── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}
.capability-card {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.capability-card:nth-child(3n)        { border-right: none; }
.capability-card:nth-last-child(-n+3) { border-bottom: none; }
.capability-card:hover                { background: var(--bg-off); }
.capability-card__index { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.capability-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.2; flex: 1; }
.capability-card__desc  { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.capability-card__link  { font-size: 13px; color: var(--accent); margin-top: 8px; }

/* ── Industry list ── */
.industry-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
}
.industry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13px;
  transition: background 0.12s, color 0.12s;
  gap: var(--sp-3);
}
.industry-item:nth-child(4n)         { border-right: none; }
.industry-item:nth-last-child(-n+4)  { border-bottom: none; }
.industry-item:hover                 { background: var(--bg-off); color: var(--ink); }
.industry-item span                  { opacity: 0.3; font-size: 11px; }

/* ── Knowledge domains ── */
.knowledge-domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}
.knowledge-domain {
  padding: var(--sp-5);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.knowledge-domain:nth-child(3n)        { border-right: none; }
.knowledge-domain:nth-last-child(-n+3) { border-bottom: none; }
.knowledge-domain:hover                { background: var(--bg-off); }
.knowledge-domain__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.knowledge-domain__subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.knowledge-domain__subject { font-size: 11px; color: var(--ink-3); border: 1px solid var(--rule); padding: 3px 8px; }

/* ── Project grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
}
.project-card {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background 0.15s;
}
.project-card:nth-child(2n)        { border-right: none; }
.project-card:nth-last-child(-n+2) { border-bottom: none; }
.project-card:hover                { background: var(--bg-off); }
.project-card__type  { font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; }
.project-card__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.2; }
.project-card__desc  { font-size: 13px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.project-card__meta  { display: flex; flex-wrap: wrap; gap: 8px; padding-top: var(--sp-3); border-top: 1px solid var(--rule-faint); }

/* ── Resource list ── */
.resource-list { display: flex; flex-direction: column; border: 1px solid var(--rule); }
.resource-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.resource-item:last-child { border-bottom: none; }
.resource-item:hover      { background: var(--bg-off); }
.resource-item__type  { font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; }
.resource-item__title { font-size: 16px; color: var(--ink); }
.resource-item__meta  { font-size: 11px; color: var(--ink-4); text-align: right; white-space: nowrap; }

/* ── Blog grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.blog-card {
  padding: var(--sp-5);
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background 0.15s;
}
.blog-card:last-child { border-right: none; }
.blog-card:hover      { background: var(--bg-off); }
.blog-card__topic { font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; }
.blog-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.3; flex: 1; }
.blog-card__desc  { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.blog-card__foot  { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-3); border-top: 1px solid var(--rule-faint); font-size: 11px; color: var(--ink-4); }

/* ── Person cards ── */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.person-card {
  padding: var(--sp-5);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
}
.person-card:nth-child(3n) { border-right: none; }
.person-card:hover         { background: var(--bg-off); }
.person-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rule); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; color: var(--ink-3);
}
.person-card__name { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.person-card__role { font-size: 13px; color: var(--ink-3); }
.person-card__bio  { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 8px; }
.person-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ── Sub-item list ── */
.sub-item-list { border: 1px solid var(--rule); }
.sub-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.sub-item:last-child { border-bottom: none; }
a.sub-item:hover    { background: var(--bg-off); }
.sub-item__title  { font-size: 16px; color: var(--ink); white-space: nowrap; }
.sub-item__desc   { font-size: 13px; color: var(--ink-3); flex: 1; padding-left: var(--sp-5); }
.sub-item__arrow  { color: var(--ink-4); font-size: 13px; }

/* ── Process flow (horizontal) ── */
.process-flow {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border: 1px solid var(--rule);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
}
.process-step { padding: var(--sp-5) var(--sp-3); border-right: 1px solid var(--rule); text-align: center; }
.process-step:last-child { border-right: none; }
.process-step__num  { font-size: 11px; color: var(--ink-4); margin-bottom: 8px; }
.process-step__name { font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.3; }

/* ── Process vertical ── */
.process-vertical { display: flex; flex-direction: column; border: 1px solid var(--rule); }
.process-v-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.process-v-step:last-child  { border-bottom: none; }
.process-v-step__num        { font-size: 28px; font-family: var(--font-display); font-weight: 300; color: var(--ink-4); line-height: 1; }
.process-v-step__title      { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.process-v-step__desc       { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ── Knowledge loop ── */
.loop-diagram { display: flex; border: 1px solid var(--rule); overflow-x: auto; }
.loop-step { display: flex; flex-direction: column; gap: 8px; padding: var(--sp-5) var(--sp-4); border-right: 1px solid var(--rule); min-width: 110px; text-align: center; flex: 1; }
.loop-step:last-child { border-right: none; }
.loop-step__icon  { font-size: 22px; color: var(--ink-4); font-family: var(--font-display); }
.loop-step__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ── Trust pillars ── */
.trust-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.trust-pillar  { padding: var(--sp-4); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.trust-pillar__title { font-size: 13px; font-weight: 500; color: var(--ink); }
.trust-pillar__desc  { font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* ── Nerd It Out block ── */
.nerditout-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border: 1px solid var(--rule);
  background: var(--bg-off);
}
.nerditout-block__tag   { font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.nerditout-block__title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 300; line-height: 1.2; margin-bottom: var(--sp-3); }
.nerditout-block__desc  { font-size: 13px; color: var(--ink-3); max-width: 520px; line-height: 1.6; }

/* ── About strip ── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.about-strip__text h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 300; line-height: 1.1; margin-bottom: var(--sp-5); }
.about-strip__text p  { font-size: 18px; color: var(--ink-2); line-height: 1.7; margin-bottom: var(--sp-4); max-width: 560px; }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--rule); }
.filter-btn {
  font-size: 11px; padding: 6px 14px;
  border: 1px solid var(--rule); background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all 0.12s;
  font-family: var(--font-body); white-space: nowrap; border-radius: var(--radius);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--ink); color: var(--ink); background: var(--bg-off); }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }
.form-field label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 11px var(--sp-3);
  border: 1px solid var(--rule);
  background: var(--bg); font-family: var(--font-body);
  font-size: 16px; color: var(--ink);
  outline: none; transition: border-color 0.15s;
  border-radius: 0; appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { min-height: 140px; resize: vertical; }

/* ── Sidebar layout ── */
.layout-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-7); align-items: start; }
.sidebar { position: sticky; top: 80px; }
.sidebar-nav { border: 1px solid var(--rule); }
.sidebar-nav__label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--rule); }
.sidebar-nav a { display: block; padding: var(--sp-3) var(--sp-4); font-size: 13px; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--rule-faint); transition: background 0.12s, color 0.12s; }
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover   { background: var(--bg-off); color: var(--ink); }
.sidebar-nav a.active  { color: var(--ink); font-weight: 500; background: var(--bg-off); }

/* ── Content block ── */
.content-block { margin-bottom: var(--sp-7); }
.content-block h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: var(--sp-4); line-height: 1.2; }
.content-block p  { font-size: 18px; color: var(--ink-2); line-height: 1.7; margin-bottom: var(--sp-4); max-width: 680px; }
