/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    padding-top: calc(var(--nav-h) + 48px);
}
.hero-card {
    width: 1216px; max-width: 100%;
    margin: 0 auto;
    padding: 45px 64px;
    background: rgba(247, 95, 37, 0.05);
    border-radius: 16px;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
}
/* Orange glow — top right */
.hero-card::before {
    content: '';
    position: absolute; top: -96px; right: 0;
    width: 384px; height: 384px;
    background: linear-gradient(135deg, #FFB59D 0%, #F75F25 100%);
    opacity: 0.10; border-radius: 12px;
    filter: blur(50px);
    pointer-events: none;
}
.hero-h1 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 48px; font-weight: 800;
    line-height: 72px; letter-spacing: 0;
    margin-bottom: 18px;
    color: #DFE2EB;
}
.hero-h1 .accent { color: #FFB596; }
.hero-sub {
    font-size: 18px; font-weight: 300; color: #EDEEF0;
    line-height: 28px; max-width: 864px;
    margin-bottom: 18px;
}
.hero-tagline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(41, 184, 216, 0.10);
    border-radius: 6px;
}
.hero-tagline .tw-word-wrap {
    display: inline-block;
}
.hero-tagline .tw {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 20px; font-weight: 700; color: #55D6F7;
    text-transform: uppercase; letter-spacing: 1px;
    line-height: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.hero-tagline .tw-static {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 20px; font-weight: 700; color: #ffffff;
    text-transform: uppercase; letter-spacing: 1px;
    line-height: 15px;
}
.hero-tagline .tw-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #55D6F7; display: inline-block; flex-shrink: 0;
}

/* ─── LOGO ROLL (vertical per-column) ────────────────────── */
.logo-roll-section { padding: 48px 0 64px; }
.logo-roll-label {
    text-align: center;
    font-size: 12px; font-weight: 600; color: var(--text3);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 28px;
}
.logo-roll-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);
}
.logo-roll-cell {
    position: relative;
    height: 72px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.logo-roll-cell:first-child { border-left: 1px solid var(--border); }
.logo-roll-name {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.38);
    letter-spacing: 0.05em; text-transform: uppercase;
    white-space: nowrap;
    will-change: transform, opacity;
}
/* A logo: visible first half, then rolls out up, jumps below, rolls back in */
.logo-roll-name.roll-a {
    animation: logoRollA 8s ease-in-out infinite;
}
/* B logo: starts below, rolls in at halfway, visible second half, rolls out */
.logo-roll-name.roll-b {
    animation: logoRollB 8s ease-in-out infinite;
}

@keyframes logoRollA {
    0%   { opacity: 1; transform: translateY(0); }
    42%  { opacity: 1; transform: translateY(0); }
    50%  { opacity: 0; transform: translateY(-100%); }
    51%  { opacity: 0; transform: translateY(100%); }
    92%  { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes logoRollB {
    0%   { opacity: 0; transform: translateY(100%); }
    42%  { opacity: 0; transform: translateY(100%); }
    50%  { opacity: 1; transform: translateY(0); }
    92%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* Staggered delays per column for a wave effect */
.logo-roll-cell:nth-child(1) .logo-roll-name { animation-delay: 0s; }
.logo-roll-cell:nth-child(2) .logo-roll-name { animation-delay: 0.2s; }
.logo-roll-cell:nth-child(3) .logo-roll-name { animation-delay: 0.4s; }
.logo-roll-cell:nth-child(4) .logo-roll-name { animation-delay: 0.6s; }
.logo-roll-cell:nth-child(5) .logo-roll-name { animation-delay: 0.8s; }
.logo-roll-cell:nth-child(6) .logo-roll-name { animation-delay: 1.0s; }
.logo-roll-cell:nth-child(7) .logo-roll-name { animation-delay: 1.2s; }

@media (max-width: 1024px) {
    .logo-roll-grid { grid-template-columns: repeat(4, 1fr); }
    .logo-roll-cell:nth-child(n+5) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
    .logo-roll-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-roll-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
    .logo-roll-cell:nth-child(odd) { border-left: 1px solid var(--border); }
}

/* ─── DELIVERY MODEL CARDS ───────────────────────────────── */
.dm-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 24px;
}
.dm-card {
    background: #181C22;
    outline: 1px solid rgba(122,133,153,0.15);
    outline-offset: -1px;
    border-radius: 0 0 5px 5px;
    padding: 24px;
    display: flex; flex-direction: column;
}
.dm-card.span-2 { grid-column: span 2; }
.dm-num {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 32px; font-weight: 800;
    color: rgba(255,181,150,0.80);
    line-height: 96px;
}
.dm-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 700; color: #DFE2EB;
    line-height: 25px; padding-bottom: 10px;
}
.dm-body {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 400; color: #EDEEF0;
    line-height: 22.75px;
}

/* ─── CAPABILITY CHIPS ───────────────────────────────────── */
.chip-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 32px 0;
}
.chip {
    display: flex; align-items: center;
    padding: 12px 18px;
    border: 1px solid rgba(85,214,247,0.3);
    border-radius: 4px;
    font-size: 13px; font-weight: 500; color: var(--text);
    line-height: 1.4;
    background: rgba(85,214,247,0.04);
    transition: border-color 0.18s, background 0.18s;
}
.chip:hover {
    border-color: rgba(85,214,247,0.5);
    background: rgba(85,214,247,0.08);
}

/* ─── PILLAR CARD (AI Eng / Platform Eng sections) ───────── */
.pillar-section { background: #0E131B; padding: 80px 0; }
.pillar-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.pillar-card {
    display: grid; grid-template-columns: 1fr 480px;
    gap: 32px;
    padding: 45px 32px;
    background: rgba(247, 95, 37, 0.05);
    border-radius: 16px;
    position: relative; overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute; top: -96px; right: 0;
    width: 384px; height: 384px;
    background: linear-gradient(135deg, #F3F3F3 0%, #EF671F 100%);
    opacity: 0.10; border-radius: 12px; filter: blur(50px);
    pointer-events: none;
}
.pillar-card.teal-tint {
    background: rgba(85, 214, 247, 0.03);
}
.pillar-card.teal-tint::before {
    background: linear-gradient(135deg, #F3F3F3 0%, #29B8D8 100%);
}
.pillar-eyebrow {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 10px; font-weight: 700; color: #55D6F7;
    text-transform: uppercase; letter-spacing: 1px;
    line-height: 15px; margin-bottom: 10px;
}
.pillar-h {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 36px; font-weight: 700; color: #DFE2EB;
    line-height: 40px; margin-bottom: 18px;
}
.pillar-h .accent { color: #FFB596; }
.pillar-body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 400; color: #EDEEF0;
    font-style: normal; line-height: 32px;
}
.pillar-body p + p { margin-top: 16px; }
.pillar-explore {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 0;
    font-size: 16px; font-weight: 600; color: #FFB596;
    transition: gap 0.18s;
}
.pillar-explore:hover { gap: 10px; }
.pillar-explore svg { flex-shrink: 0; }

/* Capability chips sidebar inside pillar card */
.pillar-chips-sidebar {
    display: flex; flex-direction: column;
    align-items: flex-start; align-self: stretch;
    padding: 16px 32px;
    background: rgba(255, 181, 150, 0.10);
    border-radius: 16px;
    position: relative; overflow: hidden;
}
.pillar-chips-sidebar.teal {
    background: rgba(85, 214, 247, 0.06);
}
.pillar-chips-sidebar::before {
    content: '';
    position: absolute; top: -96px; left: 50%;
    transform: translateX(-50%);
    width: 384px; height: 384px;
    background: linear-gradient(135deg, #F3F3F3 0%, #29B8D8 100%);
    opacity: 0.10; border-radius: 12px; filter: blur(50px);
    pointer-events: none;
}
.pillar-chips-inner {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    align-self: stretch;
    flex: 1;
    padding: 24px 20px;
    gap: 10px;
}
.pillar-chip {
    display: flex; justify-content: center; align-items: center;
    height: 50px; align-self: stretch;
    padding: 5px 10px;
    background: #10141A;
    border-radius: 5px;
    border: 0.5px solid rgba(122, 133, 153, 0.15);
    text-align: center;
    font-size: 12px; font-weight: 300; color: white;
    line-height: 20px;
}

/* ─── CASE STUDY CARDS ───────────────────────────────────── */
.cs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 24px;
}
.cs-card {
    background: transparent;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s;
}
.cs-card:hover { transform: translateY(-2px); }
.cs-img {
    width: 100%; height: 124px;
    background: #31353C;
    overflow: hidden; flex-shrink: 0;
}
.cs-img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; opacity: 0.50;
}
.cs-body {
    padding: 24px;
    background: #181C22;
    outline: 1px solid rgba(122, 133, 153, 0.15);
    outline-offset: -1px;
    flex: 1;
    display: flex; flex-direction: column;
}
.cs-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
    margin-bottom: 10px;
}
.cs-tag {
    display: inline-flex; align-items: center; justify-content: center;
    height: 20px; padding: 3px 10px;
    font-size: 11px; font-weight: 300; color: white;
    background: rgba(83, 86, 91, 0.46);
    border-radius: 1px;
    outline: 0.5px solid rgba(122, 133, 153, 0.15);
    outline-offset: -0.5px;
    line-height: 20px;
}
.cs-client {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 10px; font-weight: 700; color: #55D6F7;
    text-transform: uppercase; letter-spacing: 1px;
    line-height: 15px; margin-bottom: 10px;
}
.cs-title {
    font-size: 20px; font-weight: 600; color: #DFE2EB;
    line-height: 25px; margin-bottom: 10px;
}
.cs-desc {
    font-size: 14px; font-weight: 400; color: #EDEEF0;
    line-height: 22.75px;
    margin-bottom: 10px; flex: 1;
}
.cs-proof {
    display: flex; flex-direction: column; gap: 5px;
    margin-bottom: 16px;
}
.cs-proof-stat {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 24px; font-weight: 700; color: #FFB596;
    line-height: 36px;
}
.cs-proof-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 400; color: #A1A1AA;
    line-height: 13.75px;
}
.cs-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 10px; font-weight: 700; color: white;
    letter-spacing: 1px; line-height: 15px;
    transition: gap 0.15s; margin-top: auto;
}
.cs-link:hover { gap: 8px; }

/* ─── SIX STAGES ─────────────────────────────────────────── */
.stage-h {
    font-family: 'Outfit', sans-serif;
    font-size: 32px; font-weight: 600; color: #DFE2EB;
    line-height: 40px; margin-bottom: 24px;
}
.stage-h .accent { color: #FFB596; }
.stage-intro {
    font-family: 'Outfit', sans-serif;
    font-size: 18px; font-weight: 400; color: #EDEEF0;
    line-height: 32px;
}
.stage-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 24px;
}
.stage-card {
    background: #181C22;
    border-right: 1px solid rgba(90, 65, 57, 0.10);
    padding: 24px 48px;
    display: flex; flex-direction: column;
    min-height: 300px;
}
.stage-num {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 32px; font-weight: 800;
    color: rgba(255, 255, 255, 0.30);
    line-height: 96px;
}
.stage-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px; font-weight: 700; color: white;
    line-height: 32px; padding-top: 10px;
}
.stage-body {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 400; color: #EDEEF0;
    line-height: 20px;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section { background: var(--bg); padding: 100px 0; }
.cta-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--pad);
    display: flex; align-items: center; gap: 40px;
    flex-wrap: wrap;
}
.cta-pill {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(20px, 2.5vw, 28px); font-weight: 800;
    color: var(--bg); line-height: 1.3;
    background: var(--orange);
    border-radius: 4px;
    padding: 24px 48px;
}
.cta-headline {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(32px, 4vw, 52px); font-weight: 800;
    color: var(--text); line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ─── POSITIONING LINE (italic) ──────────────────────────── */
.pos-line {
    font-size: 16px; color: var(--text);
    font-style: italic; line-height: 1.65;
    margin-bottom: 20px; max-width: 720px;
}

/* ─── SECTION FOOTER LINK ────────────────────────────────── */
.section-footer-link {
    margin-top: 32px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pillar-card   { grid-template-columns: 1fr; }
    .dm-grid       { grid-template-columns: repeat(2, 1fr); }
    .cs-grid       { grid-template-columns: 1fr; }
    .stage-grid    { grid-template-columns: repeat(2, 1fr); }
    .chip-grid     { grid-template-columns: 1fr; }
    .footer-main   { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .pillar-section { padding: 64px 0; }
    .pillar-card { padding: 32px 20px; }
    .pillar-h { font-size: 28px; line-height: 34px; }
    .pillar-body { font-size: 16px; line-height: 28px; }
    .hero-card { padding: 36px 28px; }
    .hero-h1 { font-size: 36px; line-height: 48px; }
    .dm-grid       { grid-template-columns: 1fr 1fr; }
    .cs-grid       { grid-template-columns: 1fr; }
    .stage-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .dm-grid       { grid-template-columns: 1fr; }
    .dm-card.span-2 { grid-column: auto; }
    .stage-grid    { grid-template-columns: 1fr; }
    .footer-main   { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px var(--pad) 36px; }
    .footer-brand  { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .hero-h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; }
    .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .cta-pill { padding: 18px 32px; }
}

.footer-main { max-width: var(--max-w); padding: 64px 40px 48px; }
.footer-bottom { padding: 16px 40px; max-width: 100%; margin: 0; }
.footer-bottom-inner { max-width: var(--max-w); }
