/* Director page (ink). Page-only pieces; candidates for ink.css are marked. */

/* Product sub-nav strip (candidate for shared: also fits Architect) */
.dr-subnav {
    position: sticky;
    top: var(--ink-nav-h);
    z-index: 40;
    background: var(--paper);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    min-height: 52px;
    padding: 10px var(--pad);
    border-bottom: var(--rule) solid var(--ink);
}
.dr-subnav > a:not(.ink-link) {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}
.dr-subnav > a:not(.ink-link):hover { color: var(--red-text); }
.dr-subnav__cta { margin-left: auto; }

/* Hero */
.dr-hero .ink-hero__title { margin-top: 18px; }
.dr-hero__cta { margin-top: 28px; }
.dr-hero .ink-plate { min-height: 420px; }
.dr-hero .ink-plate img { position: absolute; inset: 0; object-position: left top; }

/* Red folio number inside a label (candidate for shared) */
.dr-folio {
    margin-right: 14px;
    color: var(--red-text);
    font-weight: 600;
}
.ink-band--ink .dr-folio { color: var(--red); }

/* Section heads: lede spacing */
.ink-section-head .ink-lede { max-width: 820px; }
.dr-problem .ink-lede { color: var(--plate); }

/* Stat strip */
.dr-stats .ink-stat__value { font-size: 2.78vw; }
.dr-stats .ink-cell { padding-bottom: 28px; }

/* How-it-works diagrams, restyled to ink (candidate for shared: .ng-* graph) */
.dr-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
}
.dr-diagram svg {
    width: 100%;
    max-width: 360px;
    height: auto;
    overflow: visible;
}
.dr-diagram .ng-node { fill: var(--paper); stroke: var(--ink); stroke-width: 2; rx: 0; ry: 0; }
.dr-diagram .ng-node.is-hub { fill: var(--ink); }
.dr-diagram .ng-node.is-out { stroke: var(--red); }
.dr-diagram .ng-tag {
    fill: var(--grey-700);
    font-family: var(--font);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.dr-diagram .ng-title {
    fill: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
}
.dr-diagram g:has(> .is-hub) .ng-title { fill: var(--paper); }
.dr-diagram g:has(> .is-hub) .ng-tag { fill: var(--grey-400); }
.dr-diagram g:has(> .is-out) .ng-tag { fill: var(--red-text); }
.dr-diagram .ng-edge { fill: none; stroke: var(--ink); stroke-width: 2; }
.dr-diagram .ng-edge.is-dash { stroke: var(--grey-500); stroke-dasharray: 4 4; }
.dr-diagram .ng-arrow { fill: var(--ink); }
.dr-diagram .ng-arrow.is-muted { fill: var(--grey-500); }
.dr-diagram .ng-elabel {
    fill: var(--grey-700);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0.06em;
    paint-order: stroke;
    stroke: var(--plate);
    stroke-width: 4px;
    stroke-linejoin: round;
}

/* Diagrams inside a stage figure: natural height, larger drawing */
.ink-stage__figure > .dr-diagram { aspect-ratio: auto; padding: 48px 32px; }
.ink-stage__figure > .dr-diagram svg { max-width: 420px; }

/* Detail rows */
.dr-detail__body { margin-top: 22px; max-width: 600px; }
.ink-detail .ink-detail__title { line-height: 1; }

/* Ruled bullet list: ink-steps rhythm with red squares (candidate for shared) */
.dr-list {
    margin-top: 26px;
    border-bottom: var(--rule) solid var(--ink);
}
.dr-list li {
    position: relative;
    padding: 13px 0 13px 30px;
    border-top: var(--rule) solid var(--ink);
    font-size: 17px;
    line-height: 25px;
    word-spacing: 0.08em;
}
.dr-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--red);
}

/* Engines grid: white logos printed in ink */
.dr-tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    min-height: 190px;
}
.dr-tool img {
    width: auto;
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0);
}
.dr-tool svg { width: 64px; height: 64px; color: var(--ink); }

/* Genre cells: plate on top, card below */
.dr-genre { display: flex; flex-direction: column; }
.dr-genre .ink-plate { border-bottom: var(--rule) solid var(--ink); }

/* Pipeline cards */
.dr-here { display: inline-block; margin-top: 19px; }
.ink-products .ink-card { display: flex; flex-direction: column; }
.ink-products .ink-card > .ink-link,
.ink-products .ink-card > .dr-here { align-self: flex-start; }

/* Positioning statement: the one red band, display size only */
.dr-statement {
    padding: 40px var(--pad) 46px;
    border-bottom: var(--rule) solid var(--ink);
}
.dr-statement p {
    max-width: 24em;
    font-size: 3.2vw;
    line-height: 1.08;
    font-weight: 400;
    font-stretch: 106%;
    letter-spacing: -0.01em;
}
.dr-statement strong { font-weight: 800; font-stretch: 108%; }

/* Pricing */
.dr-price__amt { margin-top: 12px; color: var(--red-text); }
.dr-price__cta { margin-top: 26px; }
.dr-price .ink-checks { margin-top: 2px; }
.dr-price__notes > .ink-cell + .ink-cell { border-top: var(--rule) solid var(--ink); }
.dr-price__notes .ink-body { margin-top: 6px; }

/* CTA */
.dr-cta > .ink-cell:first-child { display: flex; align-items: flex-end; }
.dr-cta > .ink-cell:last-child { padding-top: 38px; padding-bottom: 39px; }
.dr-cta > .ink-cell:last-child p { margin-top: 0; }
.dr-cta .ink-actions { margin-top: 24px; }
.dr-cta .ink-actions .ink-btn { margin-top: 0; }
.dr-underline {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.12em;
}

/* FAQ */
.dr-faq .ink-h2--sm { margin-top: 14px; }

@media (max-width: 1100px) {
    .dr-stats .ink-stat__value { font-size: 4.4vw; }
}

@media (max-width: 860px) {
    .dr-subnav__cta { margin-left: 0; }
    .dr-hero .ink-plate { min-height: 0; aspect-ratio: 16 / 10; }
    .dr-stats .ink-stat__value { font-size: 34px; }
    .dr-diagram { padding: 36px 24px; }
    .ink-detail .dr-diagram { aspect-ratio: auto; }
    .ink-detail .ink-detail__title { line-height: 1.05; }
    .dr-tool { min-height: 0; flex-direction: row; align-items: center; }
    .dr-tool img, .dr-tool svg { height: 48px; }
    .dr-tool svg { width: 48px; }
    .dr-statement p { font-size: clamp(26px, 7vw, 40px); }
    .dr-cta > .ink-cell:last-child { padding-top: 26px; }
}
