/* Semiconductor & Hardware Recruiting landing page. Scoped to .sx-* classes, loaded only by pages/semiconductor-recruiting-agency.html */

.sx-page {
    --sx-gold: #D0C28C;
    --sx-gold-soft: rgba(208, 194, 140, 0.16);
    --sx-gold-line: rgba(208, 194, 140, 0.35);
    --sx-ink: #05070a;
    --sx-ink-2: #0b0f14;
    --sx-ink-3: #121821;
    --sx-text: #c9ced6;
    --sx-muted: #8b93a1;
    background: var(--sx-ink);
    color: var(--sx-text);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.sx-page h1,
.sx-page h2,
.sx-page h3,
.sx-page h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

.sx-page a { color: var(--sx-gold); }

/* The theme sets a bare p { color: #000; margin-top: 2rem }, so restate text styling inside this page */
.sx-page p {
    margin: 0 0 1rem;
    color: var(--sx-text);
}

.sx-page li { color: var(--sx-text); }
.sx-page small { color: var(--sx-muted); }

/* Solid white nav so the black logo stays visible over the dark hero (this page only) */
body.sx-body #navbar-main,
body.sx-body .header-transparent .navbar:not(.sticky):not(.navbar-collapsed) {
    background-color: #fff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sx-gold);
    margin-bottom: 1.25rem;
}

.sx-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--sx-gold);
}

.sx-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--sx-gold-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--sx-gold-soft) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    opacity: 0.55;
    pointer-events: none;
}

.sx-glow {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 194, 140, 0.22) 0%, rgba(208, 194, 140, 0) 65%);
    filter: blur(20px);
    pointer-events: none;
}

/* Hero */
.sx-hero {
    position: relative;
    padding: 170px 0 90px;
    background: radial-gradient(ellipse at 80% 20%, #17202c 0%, var(--sx-ink) 60%);
}

.sx-hero .sx-glow { top: -120px; right: -120px; }

.sx-hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 1.5rem;
}

.sx-hero h1 span {
    color: var(--sx-gold);
    text-shadow: 0 0 40px rgba(208, 194, 140, 0.35);
}

.sx-page .sx-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--sx-text);
    max-width: 560px;
}

.sx-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.sx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.7rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--sx-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-page a.sx-btn-solid {
    background: var(--sx-gold);
    color: #000;
}

.sx-page a.sx-btn-solid:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 40px rgba(208, 194, 140, 0.45);
    transform: translateY(-2px);
    text-decoration: none;
}

.sx-page a.sx-btn-ghost { color: var(--sx-gold); }

.sx-page a.sx-btn-ghost:hover {
    background: var(--sx-gold-soft);
    transform: translateY(-2px);
    text-decoration: none;
}

.sx-readout {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 3rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--sx-gold-line);
}

.sx-readout b {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.sx-readout small {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sx-muted);
}

/* Die illustration */
.sx-die-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.sx-die-wrap svg { width: 100%; height: auto; display: block; }

.sx-die-float { animation: sx-float 9s ease-in-out infinite; transform-origin: center; }

@keyframes sx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sx-trace {
    fill: none;
    stroke: var(--sx-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 6 14;
    animation: sx-flow 2.4s linear infinite;
}

.sx-trace.sx-slow { animation-duration: 4.2s; opacity: 0.7; }

@keyframes sx-flow { to { stroke-dashoffset: -80; } }

.sx-block { animation: sx-pulse 3.6s ease-in-out infinite; }
.sx-block:nth-of-type(2n) { animation-delay: -1.2s; }
.sx-block:nth-of-type(3n) { animation-delay: -2.4s; }

@keyframes sx-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.sx-tag {
    position: absolute;
    padding: 0.4rem 0.75rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sx-gold);
    background: rgba(5, 7, 10, 0.8);
    border: 1px solid var(--sx-gold-line);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sx-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--sx-gold);
    animation: sx-pulse 2s ease-in-out infinite;
}

.sx-tag-1 { top: 6%; left: -2%; }
.sx-tag-2 { top: 44%; right: -3%; }
.sx-tag-3 { bottom: 8%; left: 6%; }

/* Ticker */
.sx-ticker {
    position: relative;
    border-top: 1px solid var(--sx-gold-line);
    border-bottom: 1px solid var(--sx-gold-line);
    background: var(--sx-ink-2);
    overflow: hidden;
    padding: 1.1rem 0;
}

.sx-ticker-track {
    display: flex;
    width: max-content;
    animation: sx-scroll 46s linear infinite;
}

.sx-ticker:hover .sx-ticker-track { animation-play-state: paused; }

.sx-ticker-track span {
    flex-shrink: 0;
    padding: 0 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sx-muted);
    white-space: nowrap;
}

.sx-ticker-track span::after {
    content: '\25C6';
    margin-left: 4rem;
    color: var(--sx-gold);
    font-size: 0.55rem;
    vertical-align: middle;
}

@keyframes sx-scroll { to { transform: translateX(-50%); } }

/* Client wall */
.sx-wall-section {
    position: relative;
    padding: 70px 0;
    background-color: #05070a;
    text-align: center;
}

.sx-page .sx-wall-label {
    margin: 0 0 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sx-muted);
}

.sx-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sx-wall li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.2rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.35s ease;
}

.sx-wall li img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.sx-wall li span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6f7886;
    transition: color 0.35s ease;
}

.sx-wall li:first-child { border-left: 0; }

.sx-wall li:hover { background-color: var(--sx-gold-soft); }

.sx-wall li:hover img {
    opacity: 1;
    transform: translateY(-3px);
    filter: brightness(0) saturate(100%) invert(80%) sepia(22%) saturate(500%) hue-rotate(5deg);
}

.sx-wall li:hover span { color: #fff; }

/* Sections */
.sx-section {
    position: relative;
    padding: 110px 0;
    background-color: #05070a;
}

.sx-section-alt { background-color: #0b0f14; }

.sx-section h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.2rem;
}

.sx-section p { line-height: 1.8; }
.sx-section h2,
.sx-section h3,
.sx-section h4 { margin-top: 0; }

.sx-section-head {
    max-width: 760px;
    margin-bottom: 3.5rem;
}

/* Flow: chip lifecycle */
.sx-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
}

.sx-flow::before {
    content: '';
    position: absolute;
    top: 29px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--sx-gold) 0 8px, transparent 8px 16px);
    opacity: 0.6;
}

.sx-step {
    position: relative;
    padding: 0 0.9rem;
    text-align: center;
}

.sx-step-node {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sx-ink);
    border: 1px solid var(--sx-gold);
    color: var(--sx-gold);
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(45deg);
    transition: all 0.35s ease;
}

.sx-step-node span { transform: rotate(-45deg); }

.sx-step:hover .sx-step-node {
    background: var(--sx-gold);
    color: #000;
    box-shadow: 0 0 34px rgba(208, 194, 140, 0.5);
}

.sx-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.sx-step p { font-size: 0.8rem; color: var(--sx-muted); line-height: 1.6; margin: 0; }

/* Bento */
.sx-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.1rem;
}

.sx-cell {
    position: relative;
    grid-column: span 4;
    padding: 2rem;
    background: linear-gradient(160deg, var(--sx-ink-3) 0%, var(--sx-ink) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease;
}

.sx-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sx-gold), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.sx-cell:hover {
    border-color: var(--sx-gold-line);
    transform: translateY(-4px);
    background: radial-gradient(circle at 20% 0%, rgba(208, 194, 140, 0.12) 0%, rgba(208, 194, 140, 0) 55%), linear-gradient(160deg, var(--sx-ink-3) 0%, var(--sx-ink) 100%);
}
.sx-cell:hover::after { transform: translateX(100%); }

.sx-cell.sx-wide { grid-column: span 8; }
.sx-cell.sx-half { grid-column: span 6; }

.sx-cell-id {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--sx-gold);
    margin-bottom: 1.1rem;
    display: block;
}

.sx-cell h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.sx-cell p { font-size: 0.92rem; color: var(--sx-text); margin: 0 0 1.1rem; }

.sx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-chips li {
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--sx-gold);
    background: var(--sx-gold-soft);
    border: 1px solid rgba(208, 194, 140, 0.2);
}

/* Wafer */
.sx-wafer-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.sx-wafer-wrap svg { width: 100%; height: auto; display: block; }

.sx-wafer-spin { transform-origin: 250px 250px; animation: sx-spin 90s linear infinite; }

@keyframes sx-spin { to { transform: rotate(360deg); } }

.sx-points { list-style: none; margin: 2rem 0 0; padding: 0; }

.sx-points li {
    position: relative;
    padding: 1.05rem 0 1.05rem 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    line-height: 1.7;
}

.sx-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.sx-points li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 1.55rem;
    width: 9px;
    height: 9px;
    background: var(--sx-gold);
    transform: rotate(45deg);
}

.sx-points b { color: #fff; }

/* CTA band */
.sx-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, #1a2230 0%, var(--sx-ink) 70%);
    border-top: 1px solid var(--sx-gold-line);
}

.sx-cta .sx-glow { top: -320px; left: 50%; margin-left: -320px; }

.sx-cta h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; }
.sx-cta .sx-lead { margin: 0 auto; }
.sx-cta .sx-cta-row { justify-content: center; }

/* FAQ (native details, no JS) */
.sx-faq details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.sx-faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.sx-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.sx-faq summary::-webkit-details-marker { display: none; }

.sx-faq summary::after {
    content: '+';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--sx-gold);
    border: 1px solid var(--sx-gold-line);
    transition: all 0.3s ease;
}

.sx-faq details[open] summary::after {
    content: '\2212';
    background: var(--sx-gold);
    color: #000;
}

.sx-faq details p {
    margin: 0;
    padding: 0 3rem 1.6rem 0;
    color: var(--sx-text);
    font-size: 0.97rem;
}

.sx-links a { margin-right: 1.4rem; font-weight: 700; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .sx-page *, .sx-page *::before, .sx-page *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 991px) {
    .sx-hero { padding: 150px 0 70px; text-align: center; }
    .sx-hero .sx-lead { margin-left: auto; margin-right: auto; }
    .sx-hero .sx-cta-row,
    .sx-hero .sx-readout { justify-content: center; }
    .sx-hero .sx-eyebrow::after {
        content: '';
        width: 28px;
        height: 1px;
        background: var(--sx-gold);
    }
    .sx-die-wrap { margin-top: 3.5rem; max-width: 440px; }
    .sx-flow { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .sx-flow::before { display: none; }
    .sx-cell,
    .sx-cell.sx-wide,
    .sx-cell.sx-half { grid-column: span 12; }
    .sx-section { padding: 80px 0; }
    .sx-tag-1 { left: 0; }
    .sx-tag-2 { right: 0; }
}

@media (max-width: 767px) {
    .sx-wall { grid-template-columns: repeat(2, 1fr); }
    .sx-wall li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .sx-wall li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
    .sx-wall li:nth-child(-n+2) { border-top: 0; }
    .sx-wall li:last-child { grid-column: span 2; border-right: 0; }
}

@media (max-width: 575px) {
    .sx-readout { gap: 1.5rem; }
    .sx-faq details p { padding-right: 0; }
    .sx-flow { grid-template-columns: 1fr; }
}
