/* ==========================================================================
   Squinal — Life at Squinal / Careers Stylesheet
   ========================================================================== */

.sq-life-page {
    --ink: #111214;
    --muted: #666c72;
    --yellow: #ffc947;
    --blue: #5b7cff;
    --red: #f05a4f;
    --green: #73b88a;
    background: #fff;
    color: var(--ink);
    overflow-x: clip;
}

.sq-life-page h1,
.sq-life-page h2,
.sq-life-page h3 {
    letter-spacing: -.04em;
}

.sq-life-page p {
    color: var(--muted);
    line-height: 1.75;
}

/* 1. HERO SECTION: Positioned higher up ("more up side"), perfectly fitted */
.sq-life-hero {
    height: 100vh;
    min-height: 580px;
    max-height: 100vh;
    background: #151719;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    padding-top: 75px; /* Navbar height compensation */
}

.sq-life-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sq-life-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,6,7,.82), rgba(4,6,7,.32) 60%, rgba(4,6,7,.45)),
                linear-gradient(180deg, rgba(4,6,7,.15), rgba(4,6,7,.65));
}

.sq-life-hero-grain {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.sq-life-hero-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 30px; /* High up position */
    padding-bottom: 25px;
    position: relative;
    z-index: 2;
}

.sq-life-hero-copy {
    max-width: 850px;
    color: #fff;
    margin-top: 15px; /* Up side alignment */
    margin-bottom: auto;
}

.sq-life-kicker,
.sq-life-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}

.sq-life-kicker {
    color: #fff;
    margin-bottom: 14px;
}

.sq-life-kicker:before,
.sq-life-label:before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--yellow);
}

.sq-life-hero h1 {
    font-size: clamp(48px, 5.6vw, 86px);
    line-height: 0.95;
    color: #fff;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.sq-life-hero h1 em {
    font-style: normal;
    color: var(--yellow);
}

.sq-life-hero-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.6;
    max-width: 620px;
    margin-bottom: 0;
}

.sq-life-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 16px;
    margin-top: 20px;
}

.sq-life-hero-words {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}

.sq-life-hero-words i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
}

.sq-life-hero-bottom a {
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sq-life-hero-bottom a:hover {
    background: var(--yellow);
    color: #111111 !important;
    border-color: var(--yellow);
    transform: translateY(-2px);
}

/* 2. BELIEF SECTION */
.sq-life-belief {
    padding: 120px 0 110px;
}

.sq-life-belief h2 {
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.08;
    max-width: 1050px;
}

.sq-life-belief p {
    font-size: 17px;
    max-width: 520px;
}

/* 3. STICKY CULTURE STORY (100% Working Sticky Architecture) */
.sq-life-story {
    background: #f1f3f7;
    position: relative;
    overflow: visible !important;
}

.sq-life-story .row {
    align-items: stretch;
}

.sq-life-story-media-col {
    position: relative;
    align-self: stretch;
}

.sq-life-story-media {
    position: sticky;
    top: 75px;
    height: calc(100vh - 75px);
    background: #cdd3dd;
    overflow: hidden;
    z-index: 2;
    width: 100%;
}

.sq-life-stage {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .6s ease, transform .8s ease;
}

.sq-life-stage.is-active {
    opacity: 1;
    transform: scale(1);
}

.sq-life-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sq-life-stage:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(10, 12, 14, .75));
}

.sq-life-stage-caption {
    position: absolute;
    left: 38px;
    bottom: 34px;
    z-index: 4;
    color: #fff;
}

.sq-life-stage-caption span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .8;
    margin-bottom: 6px;
}

.sq-life-stage-caption b {
    font-size: 24px;
    font-weight: 700;
}

.sq-life-story-copy {
    padding: 100px 10% 120px;
}

.sq-life-story-chapter {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #ccd1d9;
    opacity: .32;
    transition: opacity .45s ease, transform .45s ease;
    padding: 40px 0;
}

.sq-life-story-chapter:last-child {
    border-bottom: 1px solid #ccd1d9;
}

.sq-life-story-chapter.is-active {
    opacity: 1;
    transform: translateX(6px);
}

.sq-life-story-chapter > span {
    font-size: 13px;
    font-weight: 800;
    color: #7c838c;
    margin-bottom: 6px;
}

.sq-life-story-chapter h3 {
    font-size: 48px;
    line-height: 1.05;
    margin: 12px 0 16px;
    color: #0f172a;
}

.sq-life-story-chapter p {
    font-size: 17px;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 4. WORK MOSAIC */
.sq-life-work {
    padding: 120px 0;
    background: #fff;
}

.sq-life-work h2 {
    font-size: 52px;
    line-height: 1.03;
}

.sq-life-work-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: 270px 270px;
    gap: 16px;
}

.sq-life-work-large,
.sq-life-work-wide {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sq-life-work-large {
    grid-row: 1/3;
}

.sq-life-work-large img,
.sq-life-work-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s ease;
}

.sq-life-work-large:hover img,
.sq-life-work-wide:hover img {
    transform: scale(1.025);
}

.sq-life-work-large:after,
.sq-life-work-wide:after {
    display: none;
}

/* Crisp Top Capsule Badge */
.sq-life-work-card-top {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
}

.sq-life-work-card-top .sq-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sq-life-work-card-top .sq-pill-badge:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow, #eab308);
    display: inline-block;
}

.sq-life-work-small {
    border-radius: 26px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sq-life-work-small span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: #0f172a;
}

.sq-life-work-small span:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f172a;
    opacity: 0.35;
    display: inline-block;
}

.sq-life-work-small h3 {
    font-size: 22px;
    line-height: 1.25;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.015em;
}

.sq-life-yellow {
    background: #ffe99e;
}

.sq-life-blue {
    background: #dce4ff;
}

.sq-life-work-wide {
    grid-column: 2/4;
}

/* 5. DARK OWNERSHIP CHAPTER */
.sq-life-ownership {
    padding: 120px 0;
    background: #101315;
    color: #fff;
}

.sq-life-ownership-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
}

.sq-life-label-light {
    color: #d4d8da;
}

.sq-life-label-light:before {
    background: #fff;
}

.sq-life-ownership h2 {
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.05;
    color: #fff;
    margin: 14px 0 0;
}

.sq-life-ownership h2 em {
    font-style: normal;
    color: var(--yellow);
}

.sq-life-ownership p {
    font-size: 16.5px;
    line-height: 1.65;
    color: #c5cacc;
}

.sq-life-ownership-big-media {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #181d20;
}

.sq-life-ownership-big-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 6. GROWTH */
.sq-life-growth {
    padding: 120px 0;
}

.sq-life-growth-head {
    max-width: 850px;
}

.sq-life-growth-head h2 {
    font-size: 52px;
    line-height: 1.04;
    margin: 18px 0 65px;
}

.sq-life-growth-lines {
    border-top: 1px solid #d7d9dc;
}

.sq-life-growth-line {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid #d7d9dc;
}

.sq-life-growth-line > span {
    font-size: 12px;
    font-weight: 800;
    color: #7b8086;
}

.sq-life-growth-line h3 {
    font-size: 30px;
    margin: 0;
}

.sq-life-growth-line p {
    margin: 0;
    max-width: 460px;
}

/* 7. LIFE FILMSTRIP */
.sq-life-filmstrip {
    padding: 110px 0;
    background: #fbfaf7;
}

.sq-life-filmstrip h2 {
    font-size: 50px;
    line-height: 1.04;
}

.sq-marquee-figure {
    width: 390px;
    margin: 0;
    text-align: left;
}

.sq-marquee-figure img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform .6s ease;
}

.sq-marquee-figure.is-even {
    width: 300px;
}

.sq-marquee-figure.is-even img {
    height: 320px;
    margin-top: 45px;
}

.sq-marquee-figure figcaption {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
    color: #0f172a;
    margin-top: 14px;
}

.sq-marquee-figure:hover img {
    transform: scale(1.025);
}

/* 8. OPENINGS */
.sq-life-openings {
    padding: 120px 0;
    background: #fff;
}

.sq-life-openings h2 {
    font-size: 52px;
    line-height: 1.03;
    margin: 20px 0;
}

.sq-life-open-link {
    font-weight: 800;
    color: #111;
}

.sq-life-open-link i {
    margin-left: 8px;
}

.sq-life-role {
    display: grid;
    grid-template-columns: 125px 1fr 24px;
    gap: 20px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid #d8dade;
    color: #111;
    transition: .25s ease;
}

.sq-life-role:last-child {
    border-bottom: 1px solid #d8dade;
}

.sq-life-role:hover {
    padding-left: 12px;
}

.sq-life-role > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    color: #7a8087;
}

.sq-life-role h3 {
    font-size: 27px;
    margin: 0 0 5px;
}

.sq-life-role p {
    font-size: 14px;
    margin: 0;
}

/* 9. FINAL CTA */
.sq-life-final {
    padding: 140px 0;
    background: #ef584b;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sq-life-final h2 {
    font-size: clamp(56px, 7vw, 92px);
    line-height: .93;
    color: #fff;
    margin: 22px 0 38px;
}

.sq-life-final-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.sq-life-final .ring-one {
    width: 620px;
    height: 620px;
}

.sq-life-final .ring-two {
    width: 820px;
    height: 820px;
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
    .sq-life-story-copy {
        padding-left: 8%;
        padding-right: 8%;
    }
    .sq-life-story-chapter h3,
    .sq-life-work h2,
    .sq-life-growth-head h2,
    .sq-life-filmstrip h2,
    .sq-life-openings h2 {
        font-size: 44px;
    }
    .sq-life-ownership h2 {
        font-size: 58px;
    }
    .sq-life-work-grid {
        grid-template-columns: 1.15fr .85fr;
        grid-template-rows: 250px 250px 230px;
    }
    .sq-life-work-large {
        grid-row: 1/3;
    }
    .sq-life-work-wide {
        grid-column: 1/3;
    }
    .sq-life-blue {
        grid-column: 2;
    }
    .sq-life-role {
        grid-template-columns: 105px 1fr 22px;
    }
}

@media (max-width: 991px) {
    .sq-life-hero {
        height: auto;
        min-height: 85vh;
        max-height: none;
    }
    .sq-life-hero-container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .sq-life-belief,
    .sq-life-work,
    .sq-life-ownership,
    .sq-life-growth,
    .sq-life-filmstrip,
    .sq-life-openings {
        padding: 85px 0;
    }
    .sq-life-story-media-col {
        min-height: auto;
    }
    .sq-life-story-media {
        position: relative;
        top: auto;
        height: 68vh;
        min-height: 500px;
    }
    .sq-life-story-copy {
        padding: 75px 7%;
    }
    .sq-life-story-chapter {
        min-height: auto;
        padding: 45px 0;
    }
    .sq-life-work-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .sq-life-work-large {
        grid-row: auto;
        grid-column: 1/3;
        min-height: 500px;
    }
    .sq-life-work-wide {
        grid-column: 1/3;
        min-height: 360px;
    }
    .sq-life-ownership-video {
        height: 460px;
    }
    .sq-life-growth-line {
        grid-template-columns: 60px 1fr;
    }
    .sq-life-growth-line p {
        grid-column: 2;
    }
    .sq-life-reel figure {
        width: 330px;
    }
    .sq-life-reel figure:nth-child(even) {
        width: 270px;
    }
}

@media (max-width: 767px) {
    .sq-life-hero {
        min-height: 680px;
    }
    .sq-life-hero-container {
        padding-top: 30px;
    }
    .sq-life-hero h1 {
        font-size: 52px;
    }
    .sq-life-hero-bottom {
        align-items: flex-end;
    }
    .sq-life-hero-words {
        display: none;
    }
    .sq-life-belief h2,
    .sq-life-story-chapter h3,
    .sq-life-work h2,
    .sq-life-growth-head h2,
    .sq-life-filmstrip h2,
    .sq-life-openings h2 {
        font-size: 36px;
    }
    .sq-life-story-media {
        height: 56vh;
        min-height: 400px;
    }
    .sq-life-work-grid {
        grid-template-columns: 1fr;
    }
    .sq-life-work-large,
    .sq-life-work-wide,
    .sq-life-blue {
        grid-column: auto;
    }
    .sq-life-work-large {
        min-height: 400px;
    }
    .sq-life-work-wide {
        min-height: 300px;
    }
    .sq-life-ownership h2 {
        font-size: 42px;
    }
    .sq-life-ownership-video {
        height: 380px;
    }
    .sq-life-growth-line {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }
    .sq-life-growth-line h3 {
        font-size: 24px;
    }
    .sq-life-role {
        grid-template-columns: 1fr 20px;
        gap: 12px;
    }
    .sq-life-role > span {
        grid-column: 1/3;
    }
    .sq-life-role p {
        display: none;
    }
    .sq-life-reel figure {
        width: 280px;
    }
    .sq-life-reel figure:nth-child(even) {
        width: 240px;
    }
    .sq-life-reel img {
        height: 300px;
    }
    .sq-life-reel figure:nth-child(even) img {
        height: 260px;
    }
    .sq-life-final {
        padding: 90px 0;
    }
    .sq-life-final .ring-one {
        width: 400px;
        height: 400px;
    }
    .sq-life-final .ring-two {
        width: 540px;
        height: 540px;
    }
    .sq-life-belief,
    .sq-life-work,
    .sq-life-ownership,
    .sq-life-growth,
    .sq-life-filmstrip,
    .sq-life-openings {
        padding: 60px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sq-life-reel-track {
        animation: none;
    }
    .sq-life-stage {
        transition: none;
    }
}
