/* ============ Hero ============ */
.hero {
    background-color: var(--color-bg);
    background-image: url('/static/images/hero/blended-wing-body.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.45) 60%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.6) 75%,
            var(--color-bg) 100%
        );
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    width: fit-content;
    margin: 0 auto;
}

.hero-row {
    /* Scales with viewport so the full sentence always stays on one line,
       down to ~310px; capped at 2.2rem on desktop. */
    font-size: clamp(0.7rem, 3.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.hero-row.faded {
    color: var(--color-text-faded);
    padding-left: 1.8em;
}

.hero-row.active {
    color: var(--color-text);
}

.hero-word-slot {
    display: inline-block;
    min-width: 5em;
}

.hero-cyan {
    color: var(--color-cyan);
}

/* Shared cyan accent bar (contact, careers) */
.cyan-bar {
    width: 120px;
    height: 4px;
    background: var(--color-cyan);
    margin-bottom: 2rem;
}

/* ============ Project Showcase ============ */
.showcase-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    background: var(--color-bg);
}

.showcase-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.showcase-slide.active {
    opacity: 1;
    z-index: 1;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 20, 35, 0.6) 40%,
        rgba(0, 10, 20, 0.3) 100%
    );
}

.showcase-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 5rem;
    gap: 2rem;
}

.showcase-text {
    max-width: 600px;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.showcase-tag {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 168, 232, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
    font-weight: 600;
}

.showcase-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.showcase-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 520px;
}

.showcase-client-logo {
    flex-shrink: 0;
    align-self: flex-end;
}

.showcase-client-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Controls bar */
.showcase-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    padding-left: calc((100% - min(var(--max-width), 92%)) / 2);
    padding-right: calc((100% - min(var(--max-width), 92%)) / 2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.showcase-counter {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    min-width: 50px;
}

.showcase-counter #showcase-current {
    color: var(--color-cyan);
    font-size: 1rem;
}

.showcase-progress {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.showcase-progress-bar {
    height: 100%;
    background: var(--color-cyan);
    width: 25%;
    border-radius: 1px;
    transition: width 0.4s ease;
}

.showcase-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.showcase-nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    border-radius: 2px;
}

.showcase-nav-btn:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* ============ Founder's Statement ============ */
.founder-section {
    background: var(--color-bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.founder-portrait {
    position: relative;
    overflow: hidden;
}

.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
}

.founder-portrait::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-bg-dark));
    pointer-events: none;
}

.founder-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.founder-statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem;
    position: relative;
}

.founder-est {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan);
    padding: 0.35rem 1rem;
    margin-bottom: 2rem;
    width: fit-content;
}

.founder-quote {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.founder-highlight {
    color: var(--color-cyan);
}

.founder-statement p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 520px;
}

.founder-watermark {
    margin-top: auto;
    padding-top: 2rem;
    opacity: 0.08;
}

.founder-watermark img {
    height: 50px;
    width: auto;
}

/* ============ By the Numbers ============ */
.proof-section {
    background: var(--color-bg);
    padding: 0;
}

.proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.proof-stat {
    text-align: center;
}

.proof-stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 168, 232, 0.3);
}

.proof-stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.proof-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.proof-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 4px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mosaic-item img,
.mosaic-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7);
    transition: filter 0.4s, transform 0.4s;
    display: block;
}

.mosaic-item:hover img,
.mosaic-item:hover video {
    filter: saturate(1) brightness(1.1);
    transform: scale(1.05);
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mosaic-item:hover .mosaic-overlay {
    transform: translateY(0);
}

.mosaic-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Explicit grid placement - no gaps */
.mosaic-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }       /* composites-work: wide */
.mosaic-item:nth-child(2) { grid-column: 3;     grid-row: 1 / 3; }   /* ribbon-cutting: tall */
.mosaic-item:nth-child(3) { grid-column: 4;     grid-row: 1; }       /* interns-nasa */
.mosaic-item:nth-child(4) { grid-column: 1;     grid-row: 2; }       /* shop-tour */
.mosaic-item:nth-child(5) { grid-column: 2;     grid-row: 2; }       /* vfs-visit */
.mosaic-item:nth-child(6) { grid-column: 4;     grid-row: 2; }       /* trebuchet */

/* ============ Two Decades of Momentum ============ */
.momentum-section {
    background: var(--color-bg-dark);
    padding: 5rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.momentum-header {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto 3rem;
}

.momentum-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.momentum-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.timeline-scroll-container {
    overflow-x: auto;
    padding: 0 2rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan) rgba(255, 255, 255, 0.05);
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 3px;
}

.timeline-track {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
    min-width: max-content;
}

.timeline-line {
    position: absolute;
    top: 2.55rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-cyan), rgba(0, 168, 232, 0.3));
    z-index: 0;
}

.timeline-node {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 260px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-cyan);
    margin-bottom: 1.5rem;
}

.timeline-dot-today {
    background: var(--color-cyan);
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 168, 232, 0.6); }
    50% { box-shadow: 0 0 24px rgba(0, 168, 232, 0.9), 0 0 40px rgba(0, 168, 232, 0.3); }
}

.timeline-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.timeline-year {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-cyan);
    font-weight: 700;
}

.timeline-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.timeline-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.timeline-card-img img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 0.75rem;
}

/* ============ Hiring CTA ============ */
.hiring-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hiring-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(0.6);
}

.hiring-inner {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 0;
}

.hiring-content {
    max-width: 580px;
}

.hiring-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan);
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
}

.hiring-inner h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hiring-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hiring-perks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hiring-perk {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hiring-perk svg {
    flex-shrink: 0;
    color: var(--color-cyan);
}

.hiring-inner .btn {
    margin-top: 0;
}

/* ============ News / What's New ============ */
/* ============ Homepage "Get in the loop" ============ */
.loop-section {
    background: var(--color-bg);
    padding: 4rem 0;
}

.loop-inner {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.loop-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.loop-heading {
    font-size: 2rem;
    font-weight: 800;
}

.loop-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.loop-view-all:hover {
    gap: 0.75rem;
    opacity: 1;
}

/* Asymmetric grid: big card left, two stacked right */
.loop-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    height: 380px;
}

.loop-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Shared card base */
.loop-card {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.loop-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 24px rgba(0, 168, 232, 0.12);
    transform: translateY(-3px);
    opacity: 1;
}

/* Image container */
.loop-card-img {
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0a0a;
}

.loop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.loop-card:hover .loop-card-img img {
    transform: scale(1.06);
}

/* Featured card - tall, image-dominant */
.loop-card-featured {
    height: 100%;
}

.loop-card-featured .loop-card-img {
    height: 55%;
}

.loop-card-featured .loop-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.loop-card-featured h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.loop-card-featured .loop-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small stacked cards - horizontal layout */
.loop-card-sm {
    flex-direction: row;
    flex: 1;
}

.loop-card-sm .loop-card-img {
    width: 40%;
    min-height: 100%;
}

.loop-card-sm .loop-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.loop-card-sm h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Tag */
.loop-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-cyan);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Meta line */
.loop-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: auto;
}

.loop-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-muted);
    display: inline-block;
}

/* ============================================================
   Siemens Expert Partner (home page)
   ============================================================ */
.siemens-section {
    background: var(--color-bg);
    padding: 10rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Centered content cluster - narrower than the full container so the copy
   fills its column and there's no dead space on the right. */
.siemens-inner {
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: 3rem;
    align-items: center;
}
.siemens-copy { order: 1; }

/* Badge (hyperlink) with spotlight glow - sits on the right */
.siemens-badge {
    order: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}
.siemens-badge-glow {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.4), transparent 70%);
    filter: blur(30px);
    z-index: 0;
    transition: opacity 0.4s ease;
}
.siemens-badge img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.siemens-badge:hover img,
.siemens-badge:focus-visible img { transform: scale(1.03); }
.siemens-badge:hover .siemens-badge-glow,
.siemens-badge:focus-visible .siemens-badge-glow { opacity: 0.9; }
.siemens-badge:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 6px;
}

/* Copy */
.siemens-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
}
.siemens-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
}
.siemens-title span { color: var(--color-cyan); }
.siemens-lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
}
.siemens-lead strong { color: var(--color-text); font-weight: 700; }

/* Product-name links */
.siemens-tools {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.siemens-tools a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.07);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.siemens-tools a:hover,
.siemens-tools a:focus-visible {
    background: rgba(0, 168, 232, 0.18);
    border-color: var(--color-cyan);
    color: #ffffff;
}
.siemens-tools a:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

/* CTA link */
.siemens-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
.siemens-cta svg { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.siemens-cta:hover svg,
.siemens-cta:focus-visible svg { transform: translateX(6px); }
.siemens-cta:hover,
.siemens-cta:focus-visible { text-decoration: underline; }

@media (max-width: 820px) {
    .siemens-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .siemens-badge { order: -1; }
    .siemens-badge img { max-width: 220px; }
    .siemens-eyebrow, .siemens-cta { justify-content: center; }
    .siemens-tools { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .siemens-badge img,
    .siemens-cta svg,
    .siemens-tools a { transition: none; }
    .siemens-badge:hover img,
    .siemens-badge:focus-visible img { transform: none; }
    .siemens-cta:hover svg,
    .siemens-cta:focus-visible svg { transform: none; }
}
