/* Shared styles for RDI internal pages. Bootstrap handles the responsive grid;
   this layer supplies the engineering visual system. */
body.rdi-page {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--dark-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.rdi-page .main-head {
    background: rgba(4, 7, 11, .34);
}

.page-hero {
    position: relative;
    min-height: min(830px, 88svh);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #05070b;
}

.page-hero-media,
.page-hero-shade,
.page-hero-grid {
    position: absolute;
    inset: 0;
}

.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.62) contrast(1.08) brightness(.68);
    transform: scale(1.02);
}

.page-hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 5, 9, .96) 0%, rgba(2, 5, 9, .78) 48%, rgba(2, 5, 9, .34) 100%),
        linear-gradient(180deg, rgba(2, 5, 9, .42), transparent 34%, rgba(2, 5, 9, .94) 96%);
}

.page-hero-grid {
    opacity: .2;
    background-image:
        linear-gradient(rgba(130, 220, 255, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 220, 255, .2) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent 10%, #000 50%, #000 100%);
}

.page-hero-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 160px;
    padding-bottom: clamp(58px, 7vw, 105px);
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(42px, 6vw, 90px);
    color: rgba(255, 255, 255, .56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-breadcrumb a:hover { color: var(--cyan); }

.page-eyebrow {
    margin-bottom: 18px;
    color: var(--orange-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 1150px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(58px, 7.4vw, 126px);
    font-weight: 650;
    line-height: .88;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.page-hero-intro {
    margin: 0 0 7px;
    color: rgba(235, 241, 247, .7);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.72;
}

.page-hero-rule {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(45px, 6vw, 82px);
}

.page-hero-rule span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, .1));
}

.page-hero-rule small {
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.page-section {
    position: relative;
    padding-block: clamp(92px, 10vw, 165px);
}

.page-section-dark {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(31, 140, 255, .14), transparent 28%),
        #060a10;
}

.page-section-blue {
    background: linear-gradient(135deg, #8ff5ff, #58c7ff);
}

.page-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--dark-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-section-dark .page-section-label { color: rgba(255, 255, 255, .55); }

.page-section-label span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
}

.page-section-label p { margin: 0; }

.page-heading {
    max-width: 1000px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(46px, 5.6vw, 88px);
    font-weight: 650;
    line-height: .96;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.page-heading-light { color: #fff; }

.page-lead {
    max-width: 870px;
    margin: 30px 0 0;
    color: var(--dark-muted);
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.75;
}

.page-lead-light { color: rgba(255, 255, 255, .66); }

.page-card-grid,
.product-category-grid,
.service-grid,
.industry-page-grid,
.program-reference-grid {
    margin-top: clamp(52px, 7vw, 100px);
}

.metric-card,
.method-card,
.service-card,
.contact-step {
    height: 100%;
    min-height: 300px;
    padding: clamp(27px, 3vw, 42px);
    border: 1px solid var(--line-dark);
    border-radius: 20px;
    background: rgba(255, 255, 255, .6);
    transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}

.metric-card:hover,
.method-card:hover,
.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(31, 140, 255, .32);
    box-shadow: 0 24px 55px rgba(14, 25, 37, .1);
}

.metric-card > strong,
.method-card > span,
.service-card > span,
.contact-step > span {
    color: var(--blue-2);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .06em;
}

.metric-card h3,
.method-card h3,
.service-card h3,
.contact-step h3 {
    margin: 80px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 650;
    line-height: 1;
    text-transform: uppercase;
}

.metric-card p,
.method-card p,
.service-card p,
.contact-step p {
    margin: 0;
    color: var(--dark-muted);
}

.content-image {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: 24px;
}

.content-image-wide { min-height: 540px; }

.content-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    filter: saturate(.68) contrast(1.08);
}

.capability-list,
.deliverable-list {
    margin-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.capability-list > div,
.deliverable-list > div {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.capability-list span,
.deliverable-list span {
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 13px;
}

.capability-list p,
.deliverable-list p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
}

.approach-steps {
    border-top: 1px solid var(--line-dark);
}

.approach-steps article {
    display: grid;
    grid-template-columns: 120px minmax(260px, .8fr) minmax(300px, 1fr);
    gap: 34px;
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--line-dark);
}

.approach-steps span {
    color: var(--blue-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.approach-steps h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 650;
    line-height: 1;
    text-transform: uppercase;
}

.approach-steps p { margin: 0; color: var(--dark-muted); }

.category-card {
    position: relative;
    min-height: 630px;
    height: 100%;
    overflow: hidden;
    padding: clamp(30px, 4vw, 58px);
    border: 1px solid rgba(7, 18, 28, .14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 10%, rgba(31, 140, 255, .14), transparent 27%),
        #0a111a;
    color: #fff;
}

.category-card > span,
.category-content > span {
    color: var(--orange-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.category-card h3 {
    max-width: 720px;
    margin: 110px 0 20px;
    font-family: var(--font-display);
    font-size: clamp(42px, 4.6vw, 74px);
    font-weight: 650;
    line-height: .94;
    text-transform: uppercase;
}

.category-card p { max-width: 650px; color: rgba(255, 255, 255, .65); }

.category-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
}

.category-card li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 9px 2px 0;
    border-radius: 50%;
    background: var(--blue);
}

.category-card-image { padding: 0; }
.category-card-image > img,
.category-card-image .category-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-card-image > img { object-fit: cover; filter: saturate(.58) brightness(.72); }
.category-shade { background: linear-gradient(180deg, rgba(4, 8, 13, .18), rgba(4, 8, 13, .95)); }
.category-content { position: absolute; inset: auto clamp(30px, 4vw, 58px) clamp(30px, 4vw, 58px); z-index: 2; }
.category-content h3 { margin-top: 18px; }
.category-card-blue { color: #07111b; background: linear-gradient(135deg, #78dcff, #a6f5ff); }
.category-card-blue > span { color: #103e60; }
.category-card-blue p,
.category-card-blue ul { color: rgba(7, 17, 27, .68); }
.category-card-blue li::before { background: #061d2d; }
.category-card-wide { min-height: 520px; }
.category-card-wide h3 { margin-top: 24px; }
.category-card-wide img { width: 100%; min-height: 370px; object-fit: cover; border-radius: 18px; }

.category-diagram {
    position: absolute;
    right: -80px;
    top: -50px;
    width: 380px;
    height: 380px;
}

.category-diagram i {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(107, 214, 255, .24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.category-diagram i:nth-child(1) { width: 100%; height: 36%; transform: translate(-50%, -50%) rotate(25deg); }
.category-diagram i:nth-child(2) { width: 62%; height: 62%; }
.category-diagram i:nth-child(3) { width: 15px; height: 15px; background: var(--blue); box-shadow: 0 0 22px var(--blue); }

.category-readout {
    position: absolute;
    right: 42px;
    top: 42px;
    display: grid;
    min-width: 190px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 15px;
    background: rgba(0, 0, 0, .22);
}
.category-readout small,
.category-readout span { color: rgba(255, 255, 255, .48); font-size: 9px; letter-spacing: .14em; }
.category-readout strong { font-family: var(--font-display); font-size: 44px; line-height: 1.15; }

.service-card {
    min-height: 370px;
    background: #fff;
}
.service-card h3 { margin-top: 95px; }

.stage-list { border-top: 1px solid rgba(255,255,255,.14); }
.stage-list article { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.stage-list span { color: var(--orange-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stage-list h3 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 52px); font-weight: 650; line-height: 1; text-transform: uppercase; }

.analysis-console {
    margin-top: clamp(55px, 7vw, 100px);
    overflow: hidden;
    border: 1px solid rgba(9, 20, 31, .14);
    border-radius: 24px;
    background: #07101a;
    color: #fff;
}
.analysis-console-visual { position: relative; min-height: 560px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(31,140,255,.28), transparent 38%), linear-gradient(rgba(107,214,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(107,214,255,.08) 1px, transparent 1px); background-size: auto, 42px 42px, 42px 42px; }
.analysis-console-visual > small { position: absolute; left: 24px; top: 20px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .15em; }
.analysis-console-orbit { position: relative; width: min(64vw, 390px); aspect-ratio: 1; }
.analysis-console-orbit i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(107,214,255,.34); border-radius: 50%; transform: translate(-50%,-50%); }
.analysis-console-orbit i:nth-child(1) { width: 100%; height: 37%; transform: translate(-50%,-50%) rotate(28deg); }
.analysis-console-orbit i:nth-child(2) { width: 68%; height: 68%; transform: translate(-50%,-50%) rotateX(68deg); }
.analysis-console-orbit i:nth-child(3) { width: 46%; height: 100%; transform: translate(-50%,-50%) rotate(-26deg); }
.analysis-console-orbit span { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border: 1px solid var(--blue); border-radius: 50%; background: rgba(107,214,255,.12); box-shadow: 0 0 45px rgba(107,214,255,.25); transform: translate(-50%,-50%); }
.analysis-console-data { height: 100%; display: grid; align-content: center; padding: clamp(28px,4vw,58px); background: #0c151f; }
.analysis-console-data > div { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.analysis-console-data span { color: rgba(255,255,255,.55); }
.analysis-console-data strong { color: var(--cyan); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.kicker-dark { color: #0b3d58; }
.page-section-blue .deliverable-list { border-color: rgba(4,25,37,.2); }
.page-section-blue .deliverable-list > div { border-color: rgba(4,25,37,.2); }
.page-section-blue .deliverable-list span { color: #0a4565; }
.page-section-blue .deliverable-list p { color: rgba(4,20,30,.78); font-weight: 650; }

.industry-page-card {
    position: relative;
    min-height: 590px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(28px, 4vw, 55px);
    border-radius: 24px;
    background: #0b121b;
    color: #fff;
}
.industry-page-card > span { position: relative; z-index: 2; color: var(--blue); font-family: var(--font-display); }
.industry-page-card > div { position: relative; z-index: 2; }
.industry-page-card p { margin-bottom: 12px; color: var(--orange-2); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.industry-page-card h3 { max-width: 780px; margin: 0; font-family: var(--font-display); font-size: clamp(42px, 5vw, 78px); font-weight: 650; line-height: .94; text-transform: uppercase; }
.industry-page-card ul { max-width: 700px; margin: 26px 0 0; padding-left: 18px; color: rgba(255,255,255,.65); }
.industry-page-card-image > img,
.industry-page-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.industry-page-card-image > img { object-fit: cover; filter: saturate(.62) brightness(.66); }
.industry-page-shade { background: linear-gradient(180deg, rgba(3,6,10,.15), rgba(3,6,10,.92)); }
.industry-page-card-blue { color: #06131d; background: linear-gradient(135deg, #77d9ff, #a4f8ff); }
.industry-page-card-blue > span,
.industry-page-card-blue p { color: #0b486b; }
.industry-page-card-blue ul { color: rgba(4,25,38,.68); }
.industry-page-card-dark { background: radial-gradient(circle at 78% 18%, rgba(31,140,255,.22), transparent 30%), #050a10; }
.industry-page-card-wide { min-height: 380px; flex-direction: row; align-items: flex-end; gap: 40px; background: #111b27; }
.industry-page-card-wide > span { position: absolute; top: 42px; left: 42px; }
.industry-page-card-wide > div { max-width: 880px; }

.program-reference {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line-dark);
    border-radius: 19px;
    background: #fff;
}
.program-reference span { color: var(--blue-2); font-family: var(--font-display); font-size: 13px; }
.program-reference strong { margin: auto 0 22px; font-family: var(--font-display); font-size: clamp(28px,2.8vw,42px); font-weight: 650; line-height: 1; text-transform: uppercase; }
.program-reference small { color: var(--dark-muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.approval-note { margin-top: 34px; padding: 28px 32px; border-left: 3px solid var(--orange); background: rgba(255,138,55,.08); }
.approval-note strong { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.approval-note p { margin: 0; color: var(--dark-muted); }

.contact-kicker { margin-top: 70px; }
.contact-info-list { margin-top: 52px; border-top: 1px solid var(--line-dark); }
.contact-info-list > * { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info-list small { display: block; margin-bottom: 5px; color: var(--dark-muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-info-list strong { font-size: 16px; font-weight: 650; }
.page-contact-form { padding: clamp(30px,4vw,58px); border-radius: 24px; background: #08111b; color: #fff; box-shadow: 0 30px 80px rgba(8,18,28,.18); }
.page-contact-form .form-label { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-contact-form .form-control,
.page-contact-form .form-select { min-height: 55px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; background-color: rgba(255,255,255,.05); box-shadow: none; }
.page-contact-form textarea.form-control { min-height: 170px; }
.page-contact-form .form-control:focus,
.page-contact-form .form-select:focus { border-color: var(--blue); background-color: rgba(255,255,255,.07); box-shadow: 0 0 0 .2rem rgba(107,214,255,.1); }
.page-contact-form .form-select { color-scheme: dark; }
.form-status { color: rgba(255,255,255,.48); }
.contact-step { color: #fff; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.04); }
.contact-step h3 { color: #fff; }
.contact-step p { color: rgba(255,255,255,.6); }

.page-cta {
    padding: 0 0 clamp(92px, 10vw, 165px);
    background: var(--paper);
}
.page-cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(35px,5vw,75px);
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at 90% 20%, rgba(107,214,255,.18), transparent 28%), #07101a;
}
.page-cta-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(42px,5vw,78px); font-weight: 650; line-height: .95; text-transform: uppercase; }
.page-cta-card p:not(.kicker) { max-width: 760px; margin: 22px 0 0; color: rgba(255,255,255,.62); }
.page-cta-card .rdi-btn { width: auto; }

.legal-page { background: #f3f5f6; }
.legal-nav { position: sticky; top: 120px; display: grid; gap: 10px; padding: 26px; border: 1px solid var(--line-dark); border-radius: 16px; background: #fff; }
.legal-nav p { margin-bottom: 10px; color: var(--dark-muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-nav a { padding: 7px 0; color: var(--dark-muted); font-size: 14px; }
.legal-nav a:hover { color: var(--blue-2); }
.legal-content { max-width: 900px; }
.legal-date { color: var(--blue-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-content h2 { margin: 60px 0 18px; font-family: var(--font-display); font-size: clamp(36px,4vw,58px); font-weight: 650; line-height: 1; text-transform: uppercase; }
.legal-content h2:first-of-type { margin-top: 25px; }
.legal-content p { color: var(--dark-muted); font-size: 17px; line-height: 1.85; }
.legal-content a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 4px; }
.legal-notice { margin-top: 55px; padding: 27px 30px; border-left: 3px solid var(--orange); background: #fff; }
.legal-notice strong { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal-notice p { margin: 0; font-size: 15px; }

[data-page-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .85s ease, transform .85s var(--ease); }
[data-page-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1199px) {
    .page-hero { min-height: 760px; }
    .page-hero-intro { max-width: 720px; }
    .approach-steps article { grid-template-columns: 90px 1fr; }
    .approach-steps article p { grid-column: 2; }
    .category-card { min-height: 560px; }
}

@media (max-width: 991px) {
    .page-hero { min-height: 680px; }
    .page-hero-shell { padding-top: 135px; }
    .page-breadcrumb { margin-bottom: 54px; }
    .page-hero-intro { max-width: 760px; margin-top: 24px; }
    .content-image { min-height: 480px; }
    .industry-page-card-wide { min-height: 520px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .industry-page-card-wide .rdi-btn { width: auto; }
    .legal-nav { position: static; }
}

@media (max-width: 767px) {
    .page-hero { min-height: 620px; }
    .page-hero h1 { font-size: clamp(49px, 14vw, 76px); }
    .page-hero-rule small { display: none; }
    .page-heading { font-size: clamp(40px, 11vw, 60px); }
    .metric-card,
    .method-card,
    .service-card,
    .contact-step { min-height: 275px; }
    .metric-card h3,
    .method-card h3,
    .service-card h3,
    .contact-step h3 { margin-top: 65px; }
    .approach-steps article { grid-template-columns: 1fr; gap: 14px; }
    .approach-steps article p { grid-column: auto; }
    .category-card { min-height: 540px; border-radius: 18px; }
    .category-card h3 { margin-top: 85px; font-size: clamp(40px, 11vw, 58px); }
    .category-content { inset: auto 26px 30px; }
    .category-content h3 { margin-top: 16px; }
    .category-card-wide { min-height: 0; }
    .category-card-wide img { min-height: 270px; }
    .category-readout { right: 22px; top: 22px; transform: scale(.84); transform-origin: top right; }
    .stage-list article { grid-template-columns: 1fr; gap: 12px; }
    .analysis-console-visual { min-height: 430px; }
    .industry-page-card { min-height: 520px; border-radius: 18px; }
    .industry-page-card-wide { min-height: 500px; }
    .industry-page-card h3 { font-size: clamp(40px, 11vw, 58px); }
    .page-cta-card { border-radius: 18px; }
    .page-cta-card .rdi-btn { width: 100%; }
    .contact-kicker { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    [data-page-reveal] { opacity: 1; transform: none; transition: none; }
}
