/* ─── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ─── Tokens ────────────────────────────────── */
:root {
    --c1:    #669ac3;
    --c2:    #93a6b3;
    --c3:    #b2d3e6;
    --white: #ffffff;
    --off:   #f7f9fb;
    --ink:   #18191c;
    --mid:   #4a555f;
    --muted: #7a8a95;
    --bdr:   #dde4ea;
    --f:     'DM Sans', system-ui, sans-serif;
    --r:     8px;
    --max:   1120px;
}
body { font-family: var(--f); color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── Util ─────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.tag  {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--c1); background: #eaf3fa;
    padding: 4px 10px; border-radius: 30px;
    margin-bottom: 12px;
}
.h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 700; line-height: 1.2;
    letter-spacing: -.02em; color: var(--ink);
}
.lead { font-size: .97rem; color: var(--mid); line-height: 1.75; max-width: 520px; }

/* ─── HEADER ────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--bdr);
    backdrop-filter: blur(8px);
}
.nav {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 76px; max-width: var(--max);
    margin: 0 auto; padding: 0 2rem;
}
.logo {
    display: flex; align-items: center;
    gap: 10px; font-weight: 700;
    font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink);
}
.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-mark {
    width: 34px; height: 34px;
    background: var(--c1); border-radius: 7px;
    display: grid; place-items: center;
    color: #fff; font-size: .82rem;
    font-weight: 700; flex-shrink: 0;
}
.nav-menu {
    display: flex; align-items: center; gap: 1.75rem;
}
.nav-menu a {
    font-size: .9rem; font-weight: 500;
    color: var(--mid); transition: color .2s;
}
.nav-menu a:hover, .nav-menu a.on { color: var(--ink); }
.nav-menu a.on { font-weight: 600; }
.btn-nav {
    font-size: .88rem; font-weight: 600;
    color: var(--white) !important;
    background: var(--c1);
    padding: 8px 18px; border-radius: var(--r);
    transition: background .2s, transform .15s;
}
.btn-nav:hover { background: #4f83ae; transform: translateY(-1px); }
.ham {
    display: none; flex-direction: column;
    gap: 5px; cursor: pointer;
    border: none; background: none; padding: 4px;
}
.ham span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); border-radius: 2px; transition: .25s;
}

/* ─── HERO INTRO ────────────────────────────── */
.hero-intro {
    padding: 6rem 2rem 5rem;
    text-align: center;
    background: var(--off);
    border-bottom: 1px solid var(--bdr);
}
.hero-intro h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 1.2rem;
}
.hero-intro h1 em {
    font-style: normal;
    color: var(--c1);
}
.hero-intro p {
    font-size: 1.1rem;
    color: var(--mid);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ─── STORY GRID ────────────────────────────── */
.story-sec { padding: 5rem 2rem 0; background: var(--off); }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto 4rem;
}
.story-content { max-width: 520px; }
.story-content .h2 { margin-bottom: 1.5rem; }
.story-content p { font-size: 1.05rem; color: var(--mid); line-height: 1.8; margin-bottom: 1.25rem; }
.story-img-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    aspect-ratio: 4/3;
    background: var(--bdr);
}
.story-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.story-img-wrap:hover img {
    transform: scale(1.05);
}

@media(max-width:920px){
    .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── SERVICES STICKY SCROLL ────────────────── */
.services-section { padding: 2rem 2rem 6rem; background: var(--bg); }
.services-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

.sticky-right { display: flex; flex-direction: column; }

.service-card {
    margin-bottom: 6rem;
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 420px;
    background: var(--off);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:nth-of-type(odd) { background: #ffffff; }
.service-card:nth-of-type(even) { background: #f0f6fa; }
.service-card:last-of-type { margin-bottom: 0; }

.sticky-right .h2 {
    position: sticky;
    top: 80px;
    z-index: 20;
    background: var(--bg);
    padding-top: 1rem;
    text-align: left;
}


/* Last card is NOT sticky — it scrolls away and takes the heading with it */
.service-card:last-child { position: relative !important; top: auto !important; z-index: 100 !important; }

.service-card:hover {
    box-shadow: 0 -12px 40px rgba(0,0,0,0.1);
}

.card-content { flex: 1; }
.card-img-wrap {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 3rem;
    flex-shrink: 0;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 { font-size: 1.5rem; color: var(--fg); margin-bottom: 1.5rem; margin-top: 0; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card li { position: relative; padding-left: 28px; margin-bottom: 0.8rem; color: var(--mid); line-height: 1.6; }
.service-card li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: bold; font-size: 1.1rem; }

@media(max-width: 920px) {
    .services-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .sticky-right { gap: 2rem; padding-bottom: 0; }
    .service-card { position: relative; top: 0 !important; z-index: 1; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); flex-direction: column; height: auto !important; align-items: flex-start; }
    .card-img-wrap { width: 100%; height: 200px; margin-left: 0; margin-top: 1.5rem; }
}

/* ─── VALUES PROPOSITION ────────────────────── */
.values-sec { padding: 1rem 2rem 2rem; background: #fff; overflow: hidden; }
.values-grid-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3rem;
    align-items: stretch;
}

.value-display-box {
    background: #f4fbfb;
    border: 1px solid var(--bdr);
    border-radius: 20px;
    padding: 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-display-box h3 {
    color: #8ac0cb;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.value-display-box p {
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 80px; 
    font-size: 1.05rem;
}

.vd-icon {
    font-size: 4.5rem;
    color: #324a5f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-item {
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    min-height: 110px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.value-item:hover {
    border-color: #669ac3;
    background: #f0f6fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    color: #324a5f;
}

@media(max-width: 1024px) {
    .values-grid-layout { grid-template-columns: 1fr; }
    .value-display-box { min-height: 250px; }
}

@media(max-width: 600px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── SCROLLING RIBBON ──────────────────────────────── */
.scrolling-ribbon-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #669ac3; /* BA Brand Blue */
    color: #fff;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    padding: 0.6rem 0;
    margin-top: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scrolling-ribbon {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ribbon-item {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.ribbon-item::after {
    content: "•";
    margin-left: 4rem;
    color: rgba(255,255,255,0.4);
}

/* ─── FIVE W'S ──────────────────────────────── */
.fivew-sec { padding: 5rem 2rem 2rem; background: var(--off); border-top: 1px solid var(--bdr); }
.sec-header { margin-bottom: 3.5rem; text-align: center; }
.sec-header .lead { margin: .5rem auto 0; }

/* Timeline */
.timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 28px; left: 28px; right: 28px;
    height: 2px;
    background: var(--bdr);
    z-index: 0;
}

.tw {
    flex: 1; display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; z-index: 1;
}
.tw-dot {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid var(--bdr);
    background: var(--white);
    display: flex; align-items: center;
    justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    transition: border-color .25s, background .25s;
    position: relative; z-index: 2;
}
.tw:hover .tw-dot { border-color: var(--c1); background: #eaf3fa; }
.tw-line {
    width: 2px; height: 22px;
    background: var(--bdr); flex-shrink: 0;
}
.tw-card {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 1.2rem 1rem;
    width: calc(100% - 16px);
    text-align: center;
    transition: border-color .25s, box-shadow .25s;
}
.tw:hover .tw-card {
    border-color: var(--c2);
    box-shadow: 0 4px 18px rgba(102,154,195,.12);
}
.tw-card .w-word {
    font-size: 1rem; font-weight: 700;
    color: var(--c1); margin-bottom: 3px;
}
.tw-card .w-sub {
    font-size: .7rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .6rem;
}
.tw-card p { font-size: .81rem; color: var(--mid); line-height: 1.65; }

/* Alternating above / below */
.tw.up   { flex-direction: column-reverse; }
.tw.down { flex-direction: column; }

/* ─── WHY CHOOSE US ─────────────────────────── */
.why-sec { padding: 5rem 2rem; }
.why-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: start;
    margin-bottom: 3rem;
}
.why-top .lead { margin-top: .75rem; }

.why-band {
    background: var(--c1); color: var(--white);
    border-radius: 10px; padding: 2rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}
.why-band .num {
    font-size: 2.1rem; font-weight: 700;
    letter-spacing: -.04em; line-height: 1;
}
.why-band .lbl {
    font-size: .78rem; margin-top: 3px;
    opacity: .85; line-height: 1.4;
}
.why-band .item {
    border-bottom: 1px solid rgba(255,255,255,.18);
    padding-bottom: 1rem;
}
.why-band .item:nth-child(3),
.why-band .item:nth-child(4) { border-bottom: none; padding-bottom: 0; }

/* ─── GLOBAL FIT TREE DIAGRAM ────────────────── */
.global-fit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gf-left {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.gf-main-image {
    width: 465px;
    max-width: 100%;
    height: 232px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gf-main-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}



.gf-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    position: relative;
    width: 100%;
}

/* Horizontal connecting line across the top of the items */
.gf-right::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: calc(10% - 0.8rem);
    right: calc(10% - 0.8rem);
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

/* Vertical line dropping from center circle to the horizontal line */
.gf-left::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: #e0e0e0;
    z-index: 1;
}

.gf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Vertical line dropping from horizontal stack to each item icon */
.gf-connector {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: #e0e0e0;
    z-index: 1;
}

.gf-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.gf-item:hover .gf-icon-circle {
    border-color: var(--primary);
    background: #f4fbfb;
}

.gf-text h4 {
    font-size: 1.1rem;
    color: var(--fg);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.gf-text p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.6;
    margin: 0;
}

/* ─── TIMELINE ──────────────────────────────── */
.timeline-sec { padding: 2rem 0 2rem; background: #fff; overflow: hidden; }
.tl-container { position: relative; max-width: 1100px; margin: 0 auto; }

.tl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tl-card {
    background: #f7f9fb;
    border: 2px solid var(--bdr);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.tl-card:hover { border-color: var(--c3); transform: translateY(-3px); }

.tl-duration { font-size: 0.85rem; font-weight: 700; color: var(--c1); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.tl-title { font-size: 1.2rem; color: var(--ink); margin-bottom: 1.5rem; }
.tl-items { padding-left: 1.2rem; margin: 0; }
.tl-items li { font-size: 0.95rem; color: var(--mid); margin-bottom: 0.5rem; list-style-type: disc; }

.tl-road-wrapper {
    position: relative;
    height: 100px;
    margin: 0 4rem; /* keep the road slightly within bounds so car doesn't overflow container */
}

.tl-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bdr);
    transform: translateY(-50%);
    border-radius: 4px;
    z-index: 1;
}

.tl-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-around; /* Distributes dots evenly relative to cards */
    z-index: 2;
}

.tl-dot {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid var(--c1);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 4px #fff;
}
.tl-dot:hover { transform: scale(1.2); }

.tl-car {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth driving physics */
    pointer-events: none; /* Let clicks pass through to the line/dots */
}

/* Wheel animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tl-car.moving .wheel {
    animation: spin 0.6s linear infinite;
    transform-origin: 0px 0px;
}

@media(max-width: 920px) {
    .tl-cards { grid-template-columns: 1fr; }
    .tl-road-wrapper { display: none; /* Hide road on mobile to save space, or we could make it vertical */ }
}

/* ─── ROADMAP GALLERY ───────────────────────── */
.roadmap-sec { background: var(--white); border-bottom: 1px solid var(--bdr); }
.rm-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 2rem; }
.rm-title { font-size: 2.8rem; color: var(--fg); margin: 0; line-height: 1.1; max-width: 500px; }
.rm-desc { max-width: 400px; font-size: 1rem; color: var(--mid); line-height: 1.6; margin: 0; }

.rm-gallery-container { width: 100%; overflow: hidden; margin-bottom: 2rem; padding-bottom: 1rem; }
.rm-gallery { 
    display: flex; gap: 1.5rem; transition: transform 0.4s ease; 
}

.rm-card {
    flex-shrink: 0;
    width: 280px;
    background: #f7f9fb;
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    height: 350px;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0.6;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.rm-card:hover { opacity: 0.9; }

.rm-card.active {
    width: 600px;
    background: var(--c1); /* Dark blue */
    color: var(--white);
    opacity: 1;
    cursor: default;
    box-shadow: 0 10px 30px rgba(50,74,95,0.2);
}

.rm-card h3 { font-size: 1.2rem; color: var(--c1); margin-top: 0; margin-bottom: 1rem; }
.rm-card.active h3 { font-size: 1.8rem; color: var(--white); margin-bottom: 1.5rem; }

.rm-card ul { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; color: var(--mid); line-height: 1.5; }
.rm-card.active ul { font-size: 1.1rem; color: rgba(255,255,255,0.9); line-height: 1.6; }
.rm-card li { margin-bottom: 0.5rem; }

.rm-controls { display: flex; justify-content: center; align-items: center; width: 100%; max-width: none; gap: 2rem; }
.rm-nav { display: flex; gap: 1rem; }
.rm-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--bdr); background: var(--white);
    color: var(--fg); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.rm-btn:hover { background: var(--c1); color: var(--white); border-color: var(--c1); }
.rm-counter { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.rm-counter #rmCurrent { color: var(--c1); font-size: 2rem; font-weight: 300; line-height: 1; vertical-align: middle; }

@media(max-width: 920px) {
    .rm-card.active { width: 85vw; }
    .rm-card { width: 70vw; }
    .rm-title { font-size: 2.2rem; }
}

/* ─── FOOTER ────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--bdr);
    padding: 1.75rem 2rem;
    text-align: center;
    font-size: .82rem; color: var(--muted);
}
.site-footer a { color: var(--c1); }

/* ─── FADE IN ───────────────────────────────── */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade.in { opacity: 1; transform: none; }
.d1{transition-delay:.07s} .d2{transition-delay:.14s}
.d3{transition-delay:.21s} .d4{transition-delay:.28s} .d5{transition-delay:.35s}

/* ─── RESPONSIVE ────────────────────────────── */
@media(max-width:920px){
    .why-top { grid-template-columns:1fr; }
    .global-fit-wrapper { gap: 3rem; }
    .gf-left::after { display: none; }
    .gf-right::before { display: none; }
    .gf-connector { display: none; }
    .gf-right { flex-direction: column; gap: 2rem; }
    .gf-main-circle { width: 200px; height: 200px; }
    .gf-circle-text { font-size: 1.1rem; padding: 1.5rem; }
    .timeline::before { display:none; }
    .timeline { flex-direction:column; gap:1rem; }
    .tw,.tw.up,.tw.down { flex-direction:row; align-items:flex-start; width:100%; gap:12px; }
    .tw-dot  { width:44px; height:44px; font-size:1.1rem; flex-shrink:0; }
    .tw-line { display:none; }
    .tw-card { text-align:left; width:100%; }
}
@media(max-width:600px){
    .why-band { grid-template-columns:1fr; }
    .nav-menu { display:none; flex-direction:column; gap:0; }
    .nav-menu.open {
        display:flex; position:fixed;
        top:64px; left:0; right:0;
        background:var(--white);
        border-top:1px solid var(--bdr);
        padding:1.25rem 2rem 2rem;
        box-shadow:0 8px 24px rgba(0,0,0,.09);
    }
    .nav-menu.open a { padding:.7rem 0; border-bottom:1px solid var(--bdr); }
    .ham { display:flex; }
}
