:root {
    color-scheme: dark;
    --bg: #061b2c;
    --bg-deep: #041420;
    --panel: #102f47;
    --ink: #eef7ff;
    --muted: #bbd1df;
    --accent: #35c9ef;
    --line: rgba(157, 218, 239, .2);
    /* Shared site + interactive demo design tokens */
    --ui-font: "Segoe UI", Arial, sans-serif;
    --ui-surface: #092844;
    --ui-surface-deep: #071d37;
    --ui-border: #2caaff;
    --ui-border-bright: #8ce7ff;
    --ui-neon: #35c9ef;
    --ui-radius: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px; background: white; color: #061b2c; }
.skip-link:focus { top: 10px; }
/* Full-width dark header blends with the approved logo's navy image background. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; background: linear-gradient(90deg, #01091c 0%, #010c21 48%, #02172b 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 94px; gap: 24px; }
/* Corporate JAM.IT logo — approved dark-background WebP. */
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.corporate-logo { display: block; width: clamp(200px, 23vw, 260px); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(13px, 2.1vw, 29px); }
.site-nav a { color: #e0eff9; text-decoration: none; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .text-link:hover { color: var(--accent); }
.nav-toggle { display: none; }
.hero { min-height: 690px; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(112deg, #041b2d 15%, #06324c 72%, #061b2c); }
.hero-art { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(3, 20, 34, .86) 0%, rgba(3, 20, 34, .58) 53%, rgba(3, 20, 34, .1) 100%), url('../assets/images/JAMIT_BACKGROUND_HERO.webp'); background-size: cover; background-position: right center; background-repeat: no-repeat; opacity: .95; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 150px 0 105px; }
.hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.9rem); max-width: 960px; line-height: 1.14; }
.hero .lead { max-width: 790px; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.hero-capabilities li { padding: 5px 12px; border: 1px solid rgba(157, 218, 239, .32); border-radius: 999px; background: rgba(4, 32, 51, .72); color: #d5e9f5; font-size: .86rem; font-weight: 600; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .96rem; font-weight: 750; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.65rem); line-height: 1.08; letter-spacing: -.045em; max-width: 850px; margin-bottom: 26px; }
h1 span { color: #a5eafe; }
.lead { font-size: clamp(1.08rem, 1.9vw, 1.4rem); max-width: 650px; color: #dfedf6; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button { padding: 13px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; display: inline-block; }
.button-primary { background: var(--accent); color: #042033; }
.button-outline { border: 1px solid #b3eaff; color: white; background: #05283b77; }
.button:hover { filter: brightness(1.12); }
.section { padding: 92px 0; scroll-margin-top: 30px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 24px; }
.section p { color: var(--muted); }
.about-section { background: var(--bg); }
.about-content > h2 { max-width: 1080px; font-size: clamp(2.4rem, 4.2vw, 3.75rem); font-weight: 800; line-height: 1.14; text-align: left; }
.about-content > p { max-width: 780px; }
.about-content > .team-credential { max-width: 780px; }
.team-credential { display: flex; align-items: center; gap: 24px; margin-top: 30px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: #0a293e; }
.team-credential img { display: block; width: 100px; height: auto; flex-shrink: 0; }
.team-credential p { margin: 0; }
.team-credential strong { display: block; color: var(--ink); margin-bottom: 4px; }
.team-credential span { display: block; }
@media (max-width: 480px) { .team-credential { gap: 16px; padding: 16px; } .team-credential img { width: 80px; } }
.services-section { background: #082338; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.service-card { background: var(--panel); border: 1px solid var(--line); padding: 30px; border-radius: 12px; }
.card-number { color: var(--accent); font-weight: 700; font-size: .83rem; letter-spacing: .12em; }
.service-card h3 { font-size: 1.25rem; margin: 16px 0 10px; }
.service-card p { margin-bottom: 0; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.73fr) minmax(0, 1fr); align-items: start; gap: 40px; }
.product-name { font-size: clamp(1.65rem, 2.7vw, 2.25rem); line-height: 1.25; margin-bottom: 18px; }
.product-lead { font-size: 1.2rem; }
.product-section .product-tagline { color: #ffffff; font-weight: 700; font-style: italic; line-height: 1.5; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.product-visual { min-height: 350px; border: 1px solid var(--line); border-radius: 18px; background: #041722; overflow: hidden; }
.product-splash { display: block; width: 100%; height: auto; }
.product-emblem { display: grid; place-items: center; width: 180px; height: 180px; border: 5px solid #3cc8ed; border-radius: 50%; box-shadow: 0 0 60px #1ea9db55; font-size: 3.4rem; font-weight: 850; letter-spacing: .08em; }
.product-visual p { color: #e7f8ff; font-weight: 700; margin: 20px 0 4px; }
.product-visual small { color: #b9cedb; }
.paper-section { background: #0a2b43; }
.paper-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 45px; }
.paper-status, .contact-status { border: 1px solid var(--line); padding: 20px; border-radius: 8px; background: #11364d; }
.contact-section { text-align: center; background: #061d30; }
.footer { border-top: 1px solid var(--line); padding: 25px 0; background: var(--bg-deep); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--muted); }
/* Tablet/phone: compact, accessible menu instead of wrapping the wordmark. */
@media (max-width: 1060px) {
    .nav { min-height: 84px; position: relative; }
    .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(157,218,239,.35); border-radius: 8px; background: rgba(4,28,46,.8); color: var(--ink); cursor: pointer; }
    .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
    .nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    .site-nav { display: none; position: absolute; top: calc(100% - 2px); right: 0; width: min(300px, 100%); padding: 10px; flex-direction: column; align-items: stretch; gap: 2px; border: 1px solid rgba(157,218,239,.32); border-radius: 10px; background: #09263d; box-shadow: 0 18px 32px rgba(0,0,0,.35); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 11px 12px; border-radius: 6px; }
    .site-nav a:hover, .site-nav a:focus-visible { background: #123851; }
}
@media (max-width: 760px) {
    .container { width: min(100% - 34px, 1120px); }
    .corporate-logo { width: 200px; }
    .hero { min-height: 650px; }
    .hero-content { padding-top: 185px; }
    .hero-art { background-position: 63% center; }
    .section { padding: 66px 0; }
    .service-grid, .product-grid, .paper-grid { grid-template-columns: 1fr; gap: 22px; }
    .product-visual { min-height: 290px; }
}
@media (max-width: 390px) {
    .corporate-logo { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ================================================================
   JAMIT ATF INTERACTIVE DEMO
   Single authoritative component styles. All colors and typography
   inherit from the same design tokens used by the corporate site.
   Keep stage DOM/JS state classes (active/completed/is-revealed/
   is-turning/has-artwork) in sync with js/atf-demo.js.
   ================================================================ */

/* Execution walkthrough and playback controls */
.atf-walkthrough-screen {
    margin-top:var(--atf-screen-offset,32px);
    min-height:245px;
    border:1px solid #387aa6;
    border-radius:var(--ui-radius);
    padding:24px;
    background:linear-gradient(145deg,#112d48,#0a2036);
    box-shadow:inset 0 0 0 1px #1f52734f,0 0 16px #0b89d022;
}
.atf-screen-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-size:.72rem;
    letter-spacing:.08em;
    font-weight:800;
    color:#54c9b2;
}
.atf-walkthrough-screen h3 {font-size:clamp(1.35rem,2.3vw,1.8rem);margin:12px 0 9px}
.product-section .atf-walkthrough-screen p {font-size:1rem;line-height:1.6;color:#d2e2ed}
.atf-screen-result {border-left:3px solid #f5bf65;padding-left:12px;color:#ffe0a2;overflow-wrap:anywhere;font-size:.92rem}
.atf-screen-status {color:var(--muted);font-size:.79rem;margin-top:15px}
.atf-control-bar {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}
.atf-control-bar button {
    min-width:0;min-height:45px;
    border:1px solid #3b607c;border-radius:9px;
    background:#1b3c55;color:var(--ink);
    font-size:1.25rem;cursor:pointer;line-height:1;
}
.atf-control-bar .atf-control-play {background:#54c9b2;border-color:#54c9b2;color:#06251f}
.atf-control-bar button:hover:not(:disabled) {filter:brightness(1.14)}
.atf-control-bar button:focus-visible,.atf-flow-stage:focus-visible {
    outline:3px solid #fff;
    outline-offset:2px;
}
.atf-control-bar button:disabled {opacity:.4;cursor:not-allowed}
.atf-technology-foundation {margin-top:52px}

/* Demo panel and product framing */
.product-visual {min-width:0}
.atf-flow-demo {
    border-top:1px solid #145a87;
    padding:10px 10px 14px;
    background:linear-gradient(180deg,#05172a,#061b31);
    font-family:var(--ui-font);
}
.atf-flow-stages {padding:0}

/* Dashboard title, styled with the actual ATF gear asset */
.atf-demo-titlebar {
    display:grid;
    grid-template-columns:clamp(42px,12%,64px) minmax(0,1fr) auto;
    gap:clamp(7px,1.5vw,12px);
    align-items:center;
    min-height:83px;
    padding:10px 12px;
    margin-bottom:13px;
    border:1px solid var(--ui-border-bright);
    border-radius:var(--ui-radius);
    background:radial-gradient(ellipse at 77% 100%,#144d88 0%,#071c37 46%,#07172d 100%);
    box-shadow:inset 0 0 0 1px #2579b5,0 0 9px #159dff7b,inset 0 -2px 8px -4px #61ddff;
}
.atf-demo-brand-icon {
    width:100%;aspect-ratio:1;border-radius:50%;
    background:url("../assets/images/JAMIT_ATF_LOGO.webp") center/contain no-repeat;
    box-shadow:0 0 7px #12c3ff8a;
}
.atf-demo-brand-text {
    min-width:0;
    padding-left:9px;
    border-left:1px solid #6dcaf5a0;
    color:#f6faff;
    text-align:left;
    line-height:1.04;
}
.atf-demo-brand-text strong {
    display:block;
    font-size:clamp(.94rem,2vw,1.42rem);
    font-weight:850;
    letter-spacing:-.035em;
    white-space:nowrap;
}
.atf-demo-brand-text strong span {color:#16d5ff}
.atf-demo-brand-text small {
    display:block;
    font-size:clamp(.43rem,.78vw,.62rem);
    font-weight:650;
    letter-spacing:.13em;
    margin-top:5px;
    color:#d5e8fa;
    white-space:nowrap;
}
.atf-demo-title-pill {
    padding:8px 11px;
    border:1px solid #38d7ff;
    border-radius:30px;
    color:#f5fbff;
    white-space:nowrap;
    font-size:clamp(.57rem,.9vw,.73rem);
    font-weight:800;
    letter-spacing:.045em;
    line-height:1.15;
    box-shadow:inset 0 0 8px #1179d770,0 0 8px #1bc9ff88;
    text-shadow:0 0 5px #89ddff7a;
}

/* Eight consistent interactive cards; one button owns its text and gears. */
.atf-stage-row {display:block;width:100%}
.atf-stage-row:not(:first-child) {margin-top:10px}
.atf-flow-arrow {display:none}
.atf-stage-row .atf-flow-stage {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    align-items:center;
    gap:8px;
    width:100%;
    min-height:78px;
    margin:0;
    padding:5px 10px;
    border:1px solid var(--ui-border);
    border-radius:10px;
    background:linear-gradient(120deg,var(--ui-surface),var(--ui-surface-deep) 72%,#082744);
    box-shadow:inset 0 0 0 1px #16618b,inset 0 -3px 9px -6px #71eaff,0 0 7px #078ae657;
    color:var(--ink);
    cursor:pointer;
    text-align:left;
    font:inherit;
    transition:border-color .2s,background .2s,box-shadow .2s;
}
.atf-stage-row .atf-flow-stage:hover {
    border-color:var(--ui-border-bright);
    background:linear-gradient(120deg,#10385a,#0a2542);
    box-shadow:inset 0 0 0 1px #247ab2,inset 0 -3px 12px -5px #89edff,0 0 13px #21b5ff9c;
}
.atf-stage-row .atf-flow-stage.active {
    border-color:#95eaff;
    background:linear-gradient(115deg,#123e64,#0a294a);
    box-shadow:inset 0 0 0 1px #7cd7ff,inset 0 -3px 12px -5px #a9efff,0 0 15px #42baffab;
}
.atf-stage-row .atf-flow-stage.completed:not(.active) {
    border-color:#289bdc;
    box-shadow:inset 0 0 0 1px #1f6294,inset 0 -3px 9px -6px #69d8ff,0 0 7px #0788d467;
}
.atf-stage-label {
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    min-height:43px;
    padding-right:7px;
    border-right:1px solid #2a83ba8a;
}
.atf-stage-number {
    display:grid;
    place-items:center;
    width:30px;height:30px;
    flex:0 0 30px;
    border:1px solid #46ceff;
    border-radius:8px;
    background:linear-gradient(145deg,#145c97,#0c2d51);
    box-shadow:inset 0 0 5px #68cdff7a,0 0 9px #17adff;
    color:#f5fbff;
    font:800 1rem/1 var(--ui-font);
}
.atf-stage-row .atf-stage-copy {
    min-width:0;
    flex:1;
    color:#f5faff;
    font:750 clamp(.77rem,1vw,.94rem)/1.13 var(--ui-font);
    letter-spacing:-.025em;
    overflow-wrap:anywhere;
}
.atf-stage-row .atf-stage-copy small {
    display:block;
    margin-top:4px;
    color:#c0d9ec;
    font:400 clamp(.63rem,.82vw,.74rem)/1.25 var(--ui-font);
    letter-spacing:0;
}
.atf-stage-row .atf-count {
    color:#ffdf94;
    font-size:.7rem;
    font-weight:750;
    line-height:1.2;
    white-space:nowrap;
    margin-left:auto;
}
.atf-stage-row:last-child .atf-stage-copy small {
    font-size:clamp(.59rem,.68vw,.68rem);
    line-height:1.22;
    letter-spacing:-.02em;
}

/* Stage history and gear motion; JS owns the state classes. */
.atf-stage-row .atf-stage-animation.atf-gear-pair {
    position:relative;
    isolation:isolate;
    width:100%;
    min-width:0;
    height:69px;
    min-height:69px;
    overflow:visible;
    border:0;
    background:none;
    pointer-events:none;
    visibility:hidden;
    opacity:0;
    transition:opacity .3s ease;
}
.atf-stage-row .atf-gear-pair.is-revealed {visibility:visible;opacity:1}
.atf-animated-gear {
    position:absolute;
    display:grid;
    place-items:center;
    width:min(52%,70px);
    aspect-ratio:1;
    top:50%;
    transform:translateY(-50%);
    filter:drop-shadow(0 0 2px #c1ecff66);
}
.atf-animated-gear-atf {left:1%}
.atf-animated-gear:not(.atf-animated-gear-atf) {right:1%}
.atf-gear-rotor {
    display:block;
    width:100%;height:100%;
    transform-origin:center;
}
.atf-animated-gear-atf .atf-gear-rotor {
    animation:atf-gear-clockwise 7s linear infinite paused;
}
.atf-animated-gear:not(.atf-animated-gear-atf) .atf-gear-rotor {
    animation:atf-gear-counterclockwise 4.375s linear infinite paused;
}
.atf-gear-pair.is-turning .atf-gear-rotor,
.atf-gear-pair.is-turning .atf-animated-gear:not(.atf-animated-gear-atf) .atf-gear-rotor {
    animation-play-state:running;
}
.atf-gear-pair:not(.is-revealed) .atf-gear-rotor {
    animation-play-state:paused;
}
@keyframes atf-gear-clockwise {to {transform:rotate(360deg)}}
@keyframes atf-gear-counterclockwise {to {transform:rotate(-360deg)}}

/* Asset-based rotor with stable brand center; SVG/splash fallback. */
.atf-gear-face {
    position:absolute;
    inset:27%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1.5px solid #a6e6ff;
    border-radius:50%;
    pointer-events:none;
    background-image:url("../assets/images/JAMIT_ATF_SPLASH_DARK.webp");
    background-repeat:no-repeat;
    box-shadow:inset 0 0 5px #000c1a,0 0 4px #60d4ff90;
}
.atf-animated-gear-atf .atf-gear-face {background-size:678% 678%;background-position:49.6% 42.6%}
.atf-animated-gear-jenkins .atf-gear-face {background-size:738% 738%;background-position:49.8% 7%;border-color:#ffc56a}
.atf-animated-gear-testng .atf-gear-face {background-size:678% 678%;background-position:17.8% 25.3%;border-color:#60ccff}
.atf-animated-gear-selenium .atf-gear-face {background-size:738% 738%;background-position:81.6% 24.5%;border-color:#80ff62}
.atf-animated-gear-jira .atf-gear-face {background-size:708% 708%;background-position:84.6% 63.9%;border-color:#ffc75a}
.atf-gear-artwork {
    position:absolute;
    inset:0;
    width:100%;height:100%;
    object-fit:contain;
    visibility:hidden;
}
.atf-animated-gear.has-artwork .atf-gear-artwork {visibility:visible}
.atf-animated-gear.has-artwork svg.atf-gear-rotor {visibility:hidden}
.atf-animated-gear.has-artwork .atf-gear-face {
    z-index:1;
    inset:27%;
    border-color:transparent;
    box-shadow:none;
    background-image:var(--gear-asset);
    background-size:217.3913% 217.3913%;
    background-position:center;
}
.atf-animated-gear-atf {--gear-asset:url("../assets/images/atf-gears/Gear_Jamit_Atf.webp")}
.atf-animated-gear-jenkins {--gear-asset:url("../assets/images/atf-gears/Gear_Jenkins.webp")}
.atf-animated-gear-testng {--gear-asset:url("../assets/images/atf-gears/Gear_Testng.webp")}
.atf-animated-gear-selenium {--gear-asset:url("../assets/images/atf-gears/Gear_Selenium.webp")}
.atf-animated-gear-jira {--gear-asset:url("../assets/images/atf-gears/Gear_Jira.webp")}

/* Responsive behavior, shared breakpoints with the site layout. */
@media (max-width:760px) {
    .atf-walkthrough-screen {min-height:0;margin-top:32px}
    .atf-control-bar {gap:5px}
    .atf-control-bar button {min-height:44px}
}
@media (max-width:600px) {
    .atf-demo-titlebar {
        grid-template-columns:44px minmax(0,1fr);
        min-height:76px;
        padding:9px;
        gap:8px;
    }
    .atf-demo-brand-text strong {font-size:clamp(.9rem,3.6vw,1.15rem)}
    .atf-demo-brand-text small {font-size:clamp(.39rem,1.55vw,.56rem)}
    .atf-demo-title-pill {grid-column:2;justify-self:start;padding:5px 9px;font-size:.54rem}
}
@media (max-width:480px) {
    .atf-flow-demo {padding:8px 6px 12px}
    .atf-stage-row .atf-flow-stage {min-height:73px;padding:4px 6px;gap:4px;grid-template-columns:minmax(0,1fr) minmax(0,.82fr)}
    .atf-stage-row .atf-stage-animation.atf-gear-pair {height:64px;min-height:64px}
    .atf-animated-gear {width:min(53%,65px)}
    .atf-stage-label {min-height:39px;padding-right:4px;gap:5px}
    .atf-stage-number {width:24px;height:24px;flex-basis:24px;font-size:.79rem}
    .atf-stage-row .atf-stage-copy {font-size:clamp(.68rem,2.7vw,.82rem)}
    .atf-stage-row .atf-stage-copy small {font-size:clamp(.56rem,2.15vw,.66rem)}
    .atf-stage-row:last-child .atf-stage-copy small {font-size:.55rem}
    .atf-stage-row .atf-count {font-size:.6rem}
}
@media (prefers-reduced-motion:reduce) {
    .atf-gear-rotor {animation:none!important}
    .atf-stage-row .atf-flow-stage {transition:none}
    .atf-stage-row .atf-stage-animation.atf-gear-pair {transition:none}
}

/* Increment 1: panel-width-safe demo heading and stage typography. */
/* The demo occupies a narrow column on desktop too; viewport breakpoints
   alone cannot prevent the title and pill from overlapping. */
.atf-flow-demo {container-type:inline-size}
.atf-demo-titlebar {
    grid-template-columns:clamp(38px,10%,55px) minmax(0,1fr) auto;
}
.atf-demo-brand-text strong {font-size:clamp(.94rem,1.6vw,1.36rem)}
.atf-demo-brand-text small {font-size:clamp(.45rem,.68vw,.59rem)}
.atf-demo-title-pill {font-size:clamp(.53rem,.75vw,.7rem);padding:7px 9px}
@container (max-width:540px) {
    .atf-demo-titlebar {
        grid-template-columns:clamp(36px,13%,50px) minmax(0,1fr);
        gap:7px 10px;
        padding:10px 11px;
    }
    .atf-demo-brand-text strong {font-size:clamp(1rem,4cqw,1.35rem)}
    .atf-demo-brand-text small {
        font-size:clamp(.46rem,1.65cqw,.6rem);
        letter-spacing:.07em;
    }
    .atf-demo-title-pill {
        grid-column:2;
        justify-self:start;
        font-size:clamp(.61rem,2.3cqw,.73rem);
        padding:6px 11px;
    }
}
/* Fill the card height instead of leaving a stubby divider. */
.atf-stage-label {
    align-self:stretch;
    position:relative;
    border-right:1px solid #2a83ba9e;
}
/* Keep the repeat count out of the title's flex layout.
   Its separate position also avoids squeezing OppSearchStep into two lines. */
.atf-stage-label:has(.atf-count:not(:empty)) {padding-bottom:13px}
.atf-stage-label .atf-count:not(:empty) {
    position:absolute;
    bottom:0;
    right:12px;
    margin-left:0;
    font-size:.68rem;
}
.atf-stage-row .atf-stage-copy {font-size:clamp(.75rem,.95vw,.91rem)}
@container (max-width:490px) {
    .atf-stage-row .atf-flow-stage {
        grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
        gap:5px;
    }
    .atf-stage-label {gap:6px;padding-right:5px}
    .atf-stage-number {width:26px;height:26px;flex-basis:26px;font-size:.85rem}
    .atf-stage-row .atf-stage-copy {
        font-size:clamp(.68rem,2.75cqw,.85rem);
        letter-spacing:-.035em;
        overflow-wrap:normal;
    }
    .atf-stage-row .atf-stage-copy small {
        font-size:clamp(.54rem,2.2cqw,.69rem);
        overflow-wrap:normal;
    }
    .atf-stage-row:last-child .atf-stage-copy small {
        font-size:clamp(.52rem,2cqw,.65rem);
        letter-spacing:-.015em;
    }
    .atf-stage-label .atf-count:not(:empty) {right:5px;bottom:0}
}

/* Increment 2: tone down gear illumination while retaining the artwork and motion.
   Most of the bloom is baked into the WebP; brightness/saturation lightly reduce it. */
.atf-stage-row .atf-animated-gear {
    filter:brightness(.90) saturate(.92) drop-shadow(0 0 1px #78c9f94d);
}

/* Increment 3 — header composition: two text rows, right-side ATF badge.
   Use panel width rather than viewport width to avoid overlap in the
   website's narrow product column. No changes to gears or playback. */
.atf-demo-titlebar {
    display:grid;
    grid-template-columns:minmax(0,1fr) clamp(76px,24%,112px);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:12px;
    row-gap:9px;
    min-height:111px;
    padding:12px 15px;
}
.atf-demo-brand-text {
    grid-column:1;
    grid-row:1;
    min-width:0;
    padding-left:0;
    border-left:0;
}
.atf-demo-brand-text strong {
    font-size:clamp(1.12rem,2vw,1.55rem);
    line-height:1.05;
}
.atf-demo-brand-text small {
    font-size:clamp(.5rem,.8vw,.67rem);
    letter-spacing:.075em;
    line-height:1.25;
    white-space:normal;
}
.atf-demo-title-pill {
    grid-column:1;
    grid-row:2;
    justify-self:start;
    align-self:start;
    font-size:clamp(.63rem,.88vw,.78rem);
}
.atf-demo-brand-icon {
    grid-column:2;
    grid-row:1 / 3;
    width:100%;
    max-width:112px;
    aspect-ratio:1;
    align-self:center;
    justify-self:end;
    background-size:contain;
    border-radius:0;
}
@container (max-width:540px) {
    .atf-demo-titlebar {
        grid-template-columns:minmax(0,1fr) clamp(72px,24%,104px);
        grid-template-rows:auto auto;
        column-gap:9px;
        row-gap:8px;
        min-height:105px;
        padding:10px 12px;
    }
    .atf-demo-brand-text {grid-column:1;grid-row:1}
    .atf-demo-brand-text strong {font-size:clamp(1rem,4.4cqw,1.33rem)}
    .atf-demo-brand-text small {
        font-size:clamp(.47rem,1.8cqw,.62rem);
        letter-spacing:.055em;
    }
    .atf-demo-title-pill {
        grid-column:1;
        grid-row:2;
        justify-self:start;
        font-size:clamp(.58rem,2.45cqw,.73rem);
        padding:6px 9px;
    }
    .atf-demo-brand-icon {grid-column:2;grid-row:1 / 3}
}

/* Website V3 refinement: align CTA beneath heading and enlarge the logo.
   Scope limited to titlebar; preserve workflow cards and animations. */
.atf-demo-titlebar {
    grid-template-columns:minmax(0,1fr) clamp(90px,28%,130px);
}
.atf-demo-title-pill {
    justify-self:start;
    margin-left:8px;
}
.atf-demo-brand-icon {
    max-width:130px;
    aspect-ratio:2 / 1;
    transform:translateX(-10px) scale(1.12);
    transform-origin:center;
}
@container (max-width:540px) {
    .atf-demo-titlebar {
        grid-template-columns:minmax(0,1fr) clamp(82px,27%,112px);
    }
    .atf-demo-title-pill {
        justify-self:start;
        margin-left:0;
    }
    .atf-demo-brand-icon {
        transform:translateX(-5px) scale(1.08);
    }
}

/* QA increment: concentrated glossy edge highlights on each workflow card. */
.atf-stage-row .atf-flow-stage {
    position:relative;
    overflow:hidden;
    border-color:#1ba5ed;
    box-shadow:inset 0 0 0 1px #2e8fc069,
        inset 0 1px 3px #8ce9ff4d,
        inset 0 -2px 9px -5px #91eaff,
        0 0 6px #008fea55;
}
/* Slim cyan reflections, not a blurry glow across the entire panel. */
.atf-stage-row .atf-flow-stage::before,
.atf-stage-row .atf-flow-stage::after {
    content:"";
    position:absolute;
    left:6%;
    width:88%;
    height:2px;
    border-radius:100%;
    pointer-events:none;
}
.atf-stage-row .atf-flow-stage::before {
    top:0;
    background:linear-gradient(90deg,transparent 8%,#4ccaff77 33%,#b9f3ff 51%,#4ccaff64 70%,transparent 96%);
    box-shadow:0 1px 7px #4ac9ff65;
}
.atf-stage-row .atf-flow-stage::after {
    bottom:0;
    background:linear-gradient(90deg,transparent 3%,#46d4ff78 22%,#baf7ff 46%,#54cdffb5 67%,transparent 96%);
    box-shadow:0 -1px 7px #27bfff96,0 0 4px #9becff9e;
}
.atf-stage-row .atf-flow-stage.active {
    border-color:#91e7ff;
    box-shadow:inset 0 0 0 1px #79d7ff,
        inset 0 -2px 9px -5px #bff6ff,
        0 0 12px #30baff9c;
}
.atf-stage-row .atf-flow-stage.completed:not(.active) {
    border-color:#299ad7;
    box-shadow:inset 0 0 0 1px #2578a486,
        inset 0 -2px 9px -5px #80e2ff,
        0 0 5px #0884d45a;
}

/* XP increment: 110% stage height, 40% text / 60% gear allocation.
   Reserve three readable text lines; do not change playback or art. */
.atf-stage-row .atf-flow-stage {
    grid-template-columns:minmax(0,2fr) minmax(0,3fr);
    min-height:86px; /* previous 78px × 1.10 rounded */
    padding-top:5px;
    padding-bottom:5px;
}
.atf-stage-row .atf-stage-animation.atf-gear-pair {
    height:76px;
    min-height:76px;
}
.atf-stage-row .atf-stage-label {
    min-height:66px;
    align-items:center;
}
.atf-stage-row .atf-stage-copy {
    line-height:1.22;
    overflow-wrap:anywhere;
}
.atf-stage-row .atf-stage-copy small {
    line-height:1.3;
    margin-top:4px;
    overflow-wrap:anywhere;
}
/* Keep this split consistent even when the panel-width rules activate. */
@container (max-width:490px) {
    .atf-stage-row .atf-flow-stage {
        grid-template-columns:minmax(0,2fr) minmax(0,3fr);
        min-height:86px;
    }
    .atf-stage-row .atf-stage-animation.atf-gear-pair {
        height:76px;
        min-height:76px;
    }
    .atf-stage-row .atf-stage-label {min-height:66px}
}
@media (max-width:480px) {
    .atf-stage-row .atf-flow-stage {min-height:80px}
    .atf-stage-row .atf-stage-animation.atf-gear-pair {height:70px;min-height:70px}
    .atf-stage-row .atf-stage-label {min-height:60px}
}

/* XP: Case selection display uses existing assets; only ATF and Selenium run.
   AssertJ Swing is the available but unselected, stationary alternative. */
.atf-stage-row .atf-gear-trio .atf-animated-gear-atf {
    left:0;
    width:min(34%,66px);
}
.atf-stage-row .atf-gear-trio .atf-animated-gear-selenium {
    left:35%;
    right:auto;
    width:min(31%,59px);
}
.atf-stage-row .atf-gear-trio .atf-animated-gear-assertj {
    left:auto;
    right:0;
    width:min(31%,59px);
    opacity:.82;
}
.atf-stage-row .atf-gear-trio .atf-animated-gear-assertj .atf-gear-rotor {
    animation:none;
}

/* InputService: selected Java source; SQL and CSV available but stationary.
   The last column stacks full-size SQL and CSV gears. Stage 4 grows independently. */
.atf-stage-row .atf-flow-stage:has(.atf-gear-input) {
    min-height:164px;
}
.atf-stage-row .atf-stage-animation.atf-gear-input {
    height:154px;
    min-height:154px;
}
.atf-stage-row .atf-gear-input .atf-animated-gear-atf {
    left:0;
    width:min(31%,70px);
}
.atf-stage-row .atf-gear-input .atf-animated-gear-java {
    left:34%;
    right:auto;
    width:min(31%,70px);
}
.atf-stage-row .atf-gear-input .atf-animated-gear-sql,
.atf-stage-row .atf-gear-input .atf-animated-gear-csv {
    left:auto;
    right:0;
    width:min(31%,70px);
    opacity:.85;
}
.atf-stage-row .atf-gear-input .atf-animated-gear-sql {
    top:3%;
    transform:none;
}
.atf-stage-row .atf-gear-input .atf-animated-gear-csv {
    top:auto;
    bottom:3%;
    transform:none;
}
.atf-stage-row .atf-gear-input .atf-animated-gear-sql .atf-gear-rotor,
.atf-stage-row .atf-gear-input .atf-animated-gear-csv .atf-gear-rotor {
    animation:none;
}

/* XP refinement: aligned three-column gear centers in Case/InputService.
   Keep the existing responsive column proportions and Step 4 card height. */
.atf-stage-row .atf-gear-trio .atf-animated-gear-atf,
.atf-stage-row .atf-gear-input .atf-animated-gear-atf {
    left:1%;
    width:min(31%,70px);
}
.atf-stage-row .atf-gear-trio .atf-animated-gear-selenium,
.atf-stage-row .atf-gear-input .atf-animated-gear-java {
    left:35%;
    right:auto;
    width:min(31%,70px);
}
.atf-stage-row .atf-gear-trio .atf-animated-gear-assertj,
.atf-stage-row .atf-gear-input .atf-animated-gear-sql,
.atf-stage-row .atf-gear-input .atf-animated-gear-csv {
    right:1%;
    width:min(31%,70px);
}

/* The stationary JAVA face must use the same approved artwork as the rotor. */
.atf-animated-gear-java {--gear-asset:url("../assets/images/atf-gears/Gear_JAVA_External.webp")}

/* External JAVA artwork contains its own icon and nameplate.
   Turn the silver teeth only: the original still image is the fixed center,
   and the animated image is masked to show only the surrounding gear teeth.
   SQL and CSV are already stationary and need no changes. */
.atf-stage-row .atf-gear-input .atf-animated-gear-java.has-artwork .atf-gear-artwork {
    -webkit-mask-image:radial-gradient(circle at center,transparent 0 39.5%,#000 40%);
    mask-image:radial-gradient(circle at center,transparent 0 39.5%,#000 40%);
}
.atf-stage-row .atf-gear-input .atf-animated-gear-java.has-artwork .atf-gear-face {
    inset:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    background-image:var(--gear-asset);
    background-size:100% 100%;
    background-position:center;
    clip-path:circle(39.5% at 50% 50%);
}

/* XP increment: 10% ATF Factory gear emphasis in every workflow step.
   Scale its complete gear uniformly around its center; subsystem gear
   sizes, spacing, stage heights, and rotor animations remain unchanged. */
.atf-stage-row .atf-animated-gear-atf {
    transform:translateY(-50%) scale(1.21);
}

/* XP: compact centered gear group layout.
   Use the approved image sizes, a small visible tooth gap, and no change
   to rotor animation or stationary emblems. Applies to all eight stages. */
.atf-stage-row .atf-stage-animation.atf-gear-pair {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(6px,2%,10px);
}
.atf-stage-row .atf-stage-animation.atf-gear-pair .atf-animated-gear {
    position:relative;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    transform:none;
    width:min(31%,70px);
    flex:0 0 min(31%,70px);
}
.atf-stage-row .atf-stage-animation.atf-gear-pair .atf-animated-gear-atf {
    transform:scale(1.21);
}
/* InputService uses a 3-column / 2-row composition:
   JAVA | ATF | SQL
              | CSV
   SQL/CSV remain vertically stacked without reducing their size. */
.atf-stage-row .atf-stage-animation.atf-gear-input {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    justify-items:center;
    align-items:center;
    column-gap:0;
    row-gap:0;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear {
    width:min(100%,70px);
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-atf {
    grid-column:2;
    grid-row:1 / 3;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-java {
    grid-column:1;
    grid-row:1 / 3;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-sql {
    grid-column:3;
    grid-row:1;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-csv {
    grid-column:3;
    grid-row:2;
}

/* XP refinement: near-touching gear teeth on every stage. */
/* Transparent margins within the WebPs need tighter spacing than the
   prior 6-10px flex gap. Keep all artwork sizes and animation untouched. */
.atf-stage-row .atf-stage-animation.atf-gear-pair:not(.atf-gear-input) {
    gap:0;
}
.atf-stage-row .atf-stage-animation.atf-gear-pair:not(.atf-gear-input) .atf-animated-gear + .atf-animated-gear {
    margin-left:-8px;
}
/* Compact 70px tracks bring SQL/CSV almost together vertically and
   pull JAVA and ATF closer to the right-hand input providers. */
.atf-stage-row .atf-stage-animation.atf-gear-input {
    grid-template-columns:repeat(3,minmax(0,70px));
    grid-template-rows:repeat(2,minmax(0,70px));
    justify-content:center;
    align-content:center;
    gap:0;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-sql,
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-csv {
    top:auto;
    bottom:auto;
    transform:none;
}

/* XP polish: transparent title logo and compact InputService grouping.
   No separate square panel is needed behind the approved circular artwork. */
.atf-demo-brand-icon {
    background-color:transparent;
    border:0;
    box-shadow:none;
}
/* Adjust only Step 4's gear placement. Keep asset sizes, spin behavior,
   stationary JAVA center, and the card's approved height unchanged. */
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-java {
    transform:translateX(5px);
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-sql,
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-csv {
    transform:translateX(-12px);
}
/* Close the vertical gap between the two stationary input alternatives. */
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-sql {
    margin-bottom:-5px;
}
.atf-stage-row .atf-stage-animation.atf-gear-input .atf-animated-gear-csv {
    margin-top:-5px;
}

/* Final workflow gears: manual trigger option and completion validation.
   Stage 1 USER is stationary; Stage 8 SQL rotates with ATF and Jira,
   but its DB emblem/nameplate remains stationary, as with JAVA. */
.atf-stage-row .atf-stage-animation[data-stage="trigger"] .atf-animated-gear-user .atf-gear-rotor {
    animation:none;
}
.atf-animated-gear-sql {
    --gear-asset:url("../assets/images/atf-gears/Gear_SQL_External.webp");
}
.atf-stage-row .atf-stage-animation[data-stage="end"] .atf-animated-gear-sql.has-artwork .atf-gear-artwork {
    -webkit-mask-image:radial-gradient(circle at center,transparent 0 39.5%,#000 40%);
    mask-image:radial-gradient(circle at center,transparent 0 39.5%,#000 40%);
}
.atf-stage-row .atf-stage-animation[data-stage="end"] .atf-animated-gear-sql.has-artwork .atf-gear-face {
    inset:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    background-image:var(--gear-asset);
    background-size:100% 100%;
    background-position:center;
    clip-path:circle(39.5% at 50% 50%);
}

/* XP: return 10 percentage points to stage text (50/50 split).
   Improve readability while preserving approved gear sizes and card heights. */
.atf-stage-row .atf-flow-stage {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.atf-stage-row .atf-stage-copy {
    font-size:clamp(.86rem,1.12vw,1.03rem);
    line-height:1.2;
    letter-spacing:-.015em;
}
.atf-stage-row .atf-stage-copy small,
.atf-stage-row:last-child .atf-stage-copy small {
    font-size:clamp(.68rem,.86vw,.82rem);
    line-height:1.25;
    letter-spacing:0;
    margin-top:3px;
}
@container (max-width:490px) {
    .atf-stage-row .atf-flow-stage {
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    }
    .atf-stage-row .atf-stage-copy {
        font-size:clamp(.77rem,3.2cqw,.94rem);
        letter-spacing:-.02em;
    }
    .atf-stage-row .atf-stage-copy small,
    .atf-stage-row:last-child .atf-stage-copy small {
        font-size:clamp(.63rem,2.55cqw,.76rem);
        letter-spacing:0;
        overflow-wrap:anywhere;
    }
}

/* Invite visitors into the simulation without adding a large vertical gap. */
.atf-demo-invitation {
    margin-top:20px;
}
.atf-demo-invitation h3 {
    margin:0 0 5px;
    font-size:clamp(1.2rem,1.7vw,1.55rem);
    line-height:1.25;
    color:var(--ink);
}
.product-section .atf-demo-invitation p {
    margin:0;
    color:var(--muted);
    line-height:1.45;
}
.atf-demo-invitation + .atf-walkthrough-screen {
    margin-top:12px;
}

/* Technical Insights: downloadable PDF with an adjacent document icon. */
.paper-download {
    display:inline-flex;
    align-items:center;
    gap:14px;
    padding:18px 20px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#11364d;
    color:var(--ink);
    text-decoration:none;
    transition:border-color .2s,background .2s;
}
.paper-download:hover {
    border-color:var(--accent);
    background:#15425f;
}
.paper-download:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:3px;
}
.paper-download-icon {
    flex:none;
    color:var(--accent);
}
.paper-download strong, .paper-download small {
    display:block;
}
.paper-download small {
    margin-top:3px;
    color:var(--muted);
    font-size:.8rem;
}

/* Simple, direct contact link. */
.contact-status a {
    color:var(--accent);
    font-weight:700;
    overflow-wrap:anywhere;
}
.contact-status a:hover,
.contact-status a:focus-visible {
    color:var(--ink);
}

/* Fixed walkthrough display height, sized to the longest (Stage 8) content.
   Keep the playback controls outside this panel and in a stable position. */
.atf-walkthrough-screen {
    box-sizing:border-box;
    height:370px;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
}
.atf-walkthrough-screen .atf-screen-status {
    margin-top:auto;
    padding-top:15px;
}

/* Welcome-only invitation fills the idle TV space; hidden on every stage. */
.atf-welcome-invite {
    align-self:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    flex:1 1 auto;
    min-height:120px;
    width:min(100%,350px);
    padding:10px;
    border:0;
    background:transparent;
    color:var(--ink);
    cursor:pointer;
    font:inherit;
}
.atf-welcome-invite[hidden] {display:none;}
.atf-invite-orbit {
    position:relative;
    display:grid;
    place-items:center;
    width:78px;
    height:78px;
    border:2px solid #59d6db;
    border-radius:50%;
    background:radial-gradient(circle,#185979,#092a43 75%);
    box-shadow:0 0 18px #38bcef66,inset 0 0 15px #60cbf133;
    animation:atf-invite-glow 2.4s ease-in-out infinite;
}
.atf-invite-orbit::before,
.atf-invite-orbit::after {
    content:"";
    position:absolute;
    inset:-12px;
    border:1px solid #4dc9e9;
    border-radius:50%;
    opacity:0;
    animation:atf-invite-ripple 2.8s ease-out infinite;
    pointer-events:none;
}
.atf-invite-orbit::after {animation-delay:1.4s;}
.atf-invite-play {
    color:#79f4db;
    font-size:2rem;
    line-height:1;
    margin-left:5px;
    text-shadow:0 0 14px #53d6e8;
}
.atf-invite-copy {
    color:#beeaf5;
    font-size:.95rem;
    font-weight:700;
    letter-spacing:.025em;
    text-align:center;
}
.atf-welcome-invite:hover .atf-invite-orbit,
.atf-welcome-invite:focus-visible .atf-invite-orbit {
    box-shadow:0 0 30px #54dfdbba,inset 0 0 18px #60cbf166;
}
.atf-welcome-invite:focus-visible {
    outline:2px solid #79f4db;
    outline-offset:2px;
    border-radius:8px;
}
@keyframes atf-invite-glow {
    0%,100% {transform:scale(1);box-shadow:0 0 14px #38bcef55,inset 0 0 15px #60cbf133;}
    50% {transform:scale(1.07);box-shadow:0 0 28px #38bcef99,inset 0 0 20px #60cbf177;}
}
@keyframes atf-invite-ripple {
    0% {opacity:.55;transform:scale(.85);}
    100% {opacity:0;transform:scale(1.5);}
}
@media (prefers-reduced-motion:reduce) {
    .atf-invite-orbit,.atf-invite-orbit::before,.atf-invite-orbit::after {animation:none;}
    .atf-invite-orbit::before,.atf-invite-orbit::after {display:none;}
}
