/* ================================================================ */
/*  Vertex — Content (plugin templates)                             */
/*  Loaded after vertex-chrome.css.                                 */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/*  Shared section scaffolding                                      */
/* ---------------------------------------------------------------- */
.vrtx-section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.vrtx-section + .vrtx-section {
  border-top: 1px solid var(--rule);
}

/* Section head: two-column — num | title */
.vrtx-section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* Section number / eyebrow label */
.vrtx-section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.vrtx-section-num::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 16px;
}
.vrtx-section-num-slash {
  color: var(--accent);
}

/* Section title */
.vrtx-section-title {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--ink);
  max-width: 20ch;
  margin: 0;
}
.vrtx-section-title em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* Kicker / subtitle italic beneath section title */
.vrtx-kicker {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  max-width: 54ch;
  margin-top: 22px;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Section body (contains child plugins) */
.vrtx-section-body {
  position: relative;
}

@media (max-width: 720px) {
  .vrtx-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vrtx-section-num::before { display: none; }
}

/* ---------------------------------------------------------------- */
/*  Hero                                                            */
/* ---------------------------------------------------------------- */
.vrtx-hero {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 0 clamp(80px, 10vw, 160px);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.vrtx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(91, 168, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, var(--vrtx-hero-bg-y, 0), 0);
  will-change: transform;
}
.vrtx-hero .vrtx-wrap { position: relative; z-index: 3; }

/* Eyebrow — mono tag + bar */
.vrtx-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.vrtx-hero-eyebrow-bar {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.vrtx-hero-eyebrow-tag {
  color: var(--accent);
}

/* Headline */
.vrtx-hero-headline {
  font-size: clamp(52px, 9.5vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 300;
  max-width: 14ch;
  color: var(--ink);
  margin: 0 0 clamp(28px, 3vw, 48px);
}
.vrtx-hero-headline em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sub / lead paragraph */
.vrtx-hero-sub {
  max-width: 60ch;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 300;
  margin: 0 0 clamp(28px, 3vw, 48px);
}

/* CTA button row */
.vrtx-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

/* ---- Buttons (used in hero and anywhere) ---- */
.vrtx-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
  text-decoration: none;
}
.vrtx-btn:active { transform: scale(0.98); }
.vrtx-btn:focus-visible {
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 4px var(--accent-hi);
}

.vrtx-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.vrtx-btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 0 28px rgba(91, 168, 255, 0.35);
}

.vrtx-btn-ghost {
  border: 1px solid var(--rule-hi);
  color: var(--ink);
  background: transparent;
}
.vrtx-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}

.vrtx-btn-arrow {
  transition: transform 160ms ease;
  display: inline-block;
}
.vrtx-btn:hover .vrtx-btn-arrow { transform: translateX(4px); }

/* Hero meta bar (child meta_cell plugins) */
.vrtx-hero-meta {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-hi);
  padding-top: 36px;
}

@media (max-width: 880px) {
  .vrtx-hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .vrtx-hero-meta { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- */
/*  Meta cell (used inside hero meta bar)                           */
/* ---------------------------------------------------------------- */
.vrtx-hero-meta-cell {
  padding: 0 28px 0 0;
  border-right: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.vrtx-hero-meta-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.vrtx-hero-meta-label {
  display: block;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.vrtx-hero-meta-body strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 880px) {
  .vrtx-hero-meta-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .vrtx-hero-meta-cell {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 20px;
  }
  .vrtx-hero-meta-cell:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- */
/*  Capability grid + card                                          */
/* ---------------------------------------------------------------- */
.vrtx-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--rule-hi);
  border-left: 1px solid var(--rule);
}

.vrtx-capability-card {
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: block;
  transition: background 220ms ease;
  background: linear-gradient(180deg, rgba(14, 22, 48, 0) 0%, rgba(14, 22, 48, 0) 100%);
  text-decoration: none;
  color: inherit;
}
.vrtx-capability-card:hover {
  background: linear-gradient(180deg, rgba(91, 168, 255, 0.06) 0%, transparent 100%);
}
.vrtx-capability-card:hover .vrtx-capability-arrow {
  transform: translateX(6px);
  color: var(--accent-hi);
}
.vrtx-capability-card:hover .vrtx-capability-title {
  color: var(--accent-hi);
}
.vrtx-capability-card:active { background: rgba(91, 168, 255, 0.1); }

/* Card header: num + tag */
.vrtx-capability-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.vrtx-capability-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--rule-hi);
  background: var(--panel);
  font-variant-numeric: tabular-nums;
}

.vrtx-capability-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Card title */
.vrtx-capability-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color 200ms ease;
}

/* Positioning line — serif italic */
.vrtx-capability-line {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
  font-size: 19px;
  margin-bottom: 24px;
  max-width: 42ch;
  line-height: 1.4;
}

/* Services list — mono dashed */
.vrtx-capability-list {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}

/* Arrow CTA */
.vrtx-capability-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform 200ms ease, color 200ms ease;
}

@media (max-width: 760px) {
  .vrtx-capability-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- */
/*  Principle grid + card                                           */
/* ---------------------------------------------------------------- */
.vrtx-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule-hi);
  background: var(--panel);
}

.vrtx-principle {
  padding: 44px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
  background: linear-gradient(180deg, rgba(91, 168, 255, 0.025), transparent);
}
.vrtx-principle:last-child { border-right: 0; }

/* Numbered label (mono + dot accent) */
.vrtx-principle-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.vrtx-principle-num::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.vrtx-principle-title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}

.vrtx-principle-body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 760px) {
  .vrtx-principle-grid { grid-template-columns: 1fr; }
  .vrtx-principle { border-right: 0; border-bottom: 1px solid var(--rule); }
  .vrtx-principle:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- */
/*  Service list + item                                             */
/*  No direct prototype equivalent — designed to match aesthetic.   */
/* ---------------------------------------------------------------- */
.vrtx-service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: clamp(32px, 4vw, 56px);
}

.vrtx-service-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: padding-left 220ms ease;
}
.vrtx-service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 220ms ease;
}
.vrtx-service-item:hover { padding-left: 20px; }
.vrtx-service-item:hover::before { transform: scaleY(0.6); }
.vrtx-service-item:hover .vrtx-service-item-title { color: var(--accent-hi); }
.vrtx-service-item:hover .vrtx-service-item-arrow { transform: translateX(4px); }

.vrtx-service-item--inactive {
  cursor: default;
}
.vrtx-service-item--inactive:hover { padding-left: 0; }
.vrtx-service-item--inactive:hover::before { transform: none; }
.vrtx-service-item--inactive:hover .vrtx-service-item-title { color: var(--ink); }

/* Mono number */
.vrtx-service-item-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 3px;
}

/* Title + intro */
.vrtx-service-item-content { min-width: 0; }

.vrtx-service-item-title {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  transition: color 200ms ease;
}

.vrtx-service-item-intro {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* Right-aligned arrow */
.vrtx-service-item-arrow {
  font-size: 18px;
  color: var(--accent);
  align-self: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
  display: block;
}

@media (max-width: 680px) {
  .vrtx-service-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .vrtx-service-item-arrow { display: none; }
}

/* ---------------------------------------------------------------- */
/*  Pull-quote                                                       */
/* ---------------------------------------------------------------- */
.vrtx-pullquote-block {
  position: relative;
}
.vrtx-pullquote-block--marked {
  border-top: 1px solid var(--rule-hi);
}

.vrtx-pullquote-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-top: 24px;
}

.vrtx-pullquote {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  padding: clamp(48px, 6vw, 88px) 0;
  color: var(--ink);
  margin: 0;
  border: none;
}
.vrtx-pullquote .accent { color: var(--accent); }

/* ---------------------------------------------------------------- */
/*  Thesis (two-column prose)                                       */
/* ---------------------------------------------------------------- */
.vrtx-thesis {
  column-count: 2;
  column-gap: 56px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 90ch;
  color: var(--ink-2);
  font-weight: 300;
}
.vrtx-thesis p {
  margin-top: 0;
  break-inside: avoid;
}
.vrtx-thesis p + p { margin-top: 1em; }
.vrtx-thesis strong { color: var(--ink); font-weight: 500; }

@media (max-width: 720px) {
  .vrtx-thesis { column-count: 1; }
}

/* ---------------------------------------------------------------- */
/*  Commitment grid + card                                          */
/* ---------------------------------------------------------------- */
.vrtx-commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--rule-hi);
}

.vrtx-commitment {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--rule);
}
.vrtx-commitment:last-child {
  border-right: 0;
  padding-right: 0;
}

.vrtx-commitment-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-bottom: 20px;
  display: block;
  font-variant-numeric: tabular-nums;
}

.vrtx-commitment-title {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.vrtx-commitment-body {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 720px) {
  .vrtx-commitment-grid { grid-template-columns: 1fr; }
  .vrtx-commitment {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 24px 0;
  }
  .vrtx-commitment:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- */
/*  Contact grid + card                                             */
/* ---------------------------------------------------------------- */
.vrtx-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 56px);
  border: 1px solid var(--rule-hi);
  background: var(--panel);
}

.vrtx-contact-card {
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 220ms ease;
  position: relative;
  min-height: 320px;
}
.vrtx-contact-card:last-child { border-right: 0; }
.vrtx-contact-card:hover { background: var(--panel-hi); }
.vrtx-contact-card:hover .vrtx-contact-icon {
  color: var(--accent-hi);
  transform: translateY(-2px);
}

/* Icon */
.vrtx-contact-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: color 220ms ease, transform 220ms ease;
}
.vrtx-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mono label (e.g. "// 01 — Email") */
.vrtx-contact-label {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Card title */
.vrtx-contact-title {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* Body paragraph */
.vrtx-contact-body {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Action link at bottom of card */
.vrtx-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  transition: color 180ms ease, gap 220ms ease;
  min-height: 44px;
  text-decoration: none;
}
.vrtx-contact-link:hover { color: var(--accent-hi); gap: 16px; }
.vrtx-contact-link .vrtx-btn-arrow { transition: transform 220ms ease; }
.vrtx-contact-link:hover .vrtx-btn-arrow { transform: translateX(4px); }

@media (max-width: 880px) {
  .vrtx-contact-grid { grid-template-columns: 1fr; }
  .vrtx-contact-card {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
  }
  .vrtx-contact-card:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- */
/*  Prose block (label + body)                                      */
/* ---------------------------------------------------------------- */
.vrtx-prose-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 4vw, 64px);
}

.vrtx-prose-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
}

.vrtx-prose-body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
}
.vrtx-prose-body p { margin: 0; }
.vrtx-prose-body p + p { margin-top: 1em; }
.vrtx-prose-body strong { color: var(--ink); font-weight: 500; }
.vrtx-prose-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 720px) {
  .vrtx-prose-block { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------------------------------------------------------------- */
/*  Forced-colors adjustments for content elements                  */
/* ---------------------------------------------------------------- */
@media (forced-colors: active) {
  .vrtx-capability-card,
  .vrtx-principle,
  .vrtx-contact-card { border: 1px solid CanvasText; }
}
