/* thoughts.css — "What We Do" scroll stack */
:root {
    --thoughts-css: 8;   /* version marker, checked by thoughts.v8.js */
    --bg: #0a0a0a;
    --ink: #f4f4f2;
    --liquid: #d3dde0;      /* second colour of the liquid shader */
    --card: #ffffff;        /* WebGL cards read --card / --card-2: white to match your cards */
    --card-2: #ffffff;
}

body.thoughts-page {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    /*font-family: 'InterThin', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    overflow-x: hidden;
    overflow-x: clip;       /* clip does not break pinning/sticky the way hidden can */
}

/* White logo / menu stay readable on the light page */
/* header is left exactly as custom.css defines it (no blend mode / z-index override) */

body.thoughts-page #fluid-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    display: block;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    pointer-events: none !important;
}

/* ScrollTrigger pins the stage and adds the scroll distance */
body.thoughts-page .scroll-spacer { position: relative; z-index: 2; }

.thoughts-page .sticky-viewport {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* ---------- Hero ---------- */
.thoughts-page .left-content {
    position: absolute;
    inset: 0;
    padding: 12vh 5vw 0;
    --f: 8.6vw;
    will-change: transform, filter;
}
body.thoughts-page .scroll-spacer .left-content h1 {
    margin: 0;
    font-family: 'AileronThin', 'Aileron', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: var(--f) !important;
    line-height: .97;
    font-weight: 400 !important;
    font-stretch: 125%;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink);
    background: none;
    mix-blend-mode: normal;
    opacity: 1;
}
.thoughts-page .left-content h1 span { display: block; }
.thoughts-page .left-content .l2 { padding-left: 6vw; }
.thoughts-page .left-content .l3 { padding-left: 22vw; }

.thoughts-page .intro {
    position: absolute;
    left: 44vw;
    top: calc(12vh + .6vw);
    width: 30vw;
    min-width: 150px;
}
.thoughts-page .intro p {
    margin: 0 0 1.1rem;
    font-family: 'InterThin', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(.75rem, 1.1vw, 1rem);
    line-height: 1.25;
    font-weight: 400;
    color: var(--ink);
}
.thoughts-page .services-link {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .5rem .7rem;
    background: var(--ink);
    color: var(--bg);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}
.thoughts-page .services-link i { font-style: normal; transition: transform .3s; }
.thoughts-page .services-link:hover i { transform: translateX(5px); }

/* ---------- Card stack ---------- */
.thoughts-page .right-content,
.thoughts-page .card-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.thoughts-page .card-stack { perspective: 1100px; }

body.thoughts-page .scroll-spacer .card {
    --cw: clamp(230px, 34vw, 400px);
    position: absolute;
    inset: 0;                      /* centred by CSS, so GSAP only moves y / rotation / scale */
    margin: auto;
    width: var(--cw);
    height: calc(var(--cw) * 1.08);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #0c0c0c !important;
    text-decoration: none;
    pointer-events: auto;
    background: white !important; /* linear-gradient(180deg, var(--card) 35%, var(--card-2)) */
    box-shadow: none; /* 0 18px 40px rgba(0, 0, 0, .14) */
    mix-blend-mode: normal;
    transform: none;               /* GSAP takes over */
    will-change: transform;
}
body.thoughts-page .scroll-spacer .card h2 {
    margin: 0 0 .7rem;
    font-family: 'AileronThin', 'Aileron', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: clamp(1.1rem, 2.1vw, 1.8rem) !important;
    line-height: .95;
    font-weight: 400 !important;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #0c0c0c !important;
}
body.thoughts-page .scroll-spacer .card p {
    color: #0c0c0c !important;
    font-family: 'InterThin', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    margin: 0;
    max-width: 26ch;
    font-size: clamp(.8rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.25;
}
.thoughts-page .card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.thoughts-page .card-details i { font-style: normal; display: inline-block; transition: transform .3s; }
.thoughts-page .card:hover .card-details i { transform: translateX(5px); }
.thoughts-page .card-details {
    font-size: clamp(.7rem, 1vw, .9rem);
    font-weight: 600;
    line-height: 1.35;
    font-stretch: 100%;
}
.thoughts-page .card-number { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 500; line-height: 1; }

@media (max-width: 700px) {
    body.thoughts-page .scroll-spacer .left-content h1 { font-stretch: 100%; }
    .thoughts-page .left-content { --f: 11vw; }
    .thoughts-page .intro { left: 5vw; width: 75vw; top: calc(12vh + var(--f) * 2.64 + 6vw); }
    .thoughts-page .left-content .l2,
    .thoughts-page .left-content .l3 { padding-left: 0; }
    body.thoughts-page .scroll-spacer .card { --cw: 68vw; }
}

/* WebGL draws the headline; the DOM h1 stays for SEO and as a fallback */
body.thoughts-page.gl-on .scroll-spacer .left-content h1 {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    user-select: none;
}

/* WebGL also draws the paragraph and the cards: keep the DOM copies invisible but clickable/selectable for SEO */
body.thoughts-page.gl-on .scroll-spacer .intro,
body.thoughts-page.gl-on .scroll-spacer .intro * {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    pointer-events: none;
}
body.thoughts-page.gl-cards .scroll-spacer .card {
    background: none !important;
    box-shadow: none !important;
}
body.thoughts-page.gl-cards .scroll-spacer .card,
body.thoughts-page.gl-cards .scroll-spacer .card * {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
body.thoughts-page .scroll-spacer .card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* The full-screen layers must never swallow clicks meant for the header (menu button etc.).
   Only the cards are clickable. */
body.thoughts-page .scroll-spacer,
body.thoughts-page .sticky-viewport,
body.thoughts-page .left-content,
body.thoughts-page .right-content,
body.thoughts-page .card-stack { pointer-events: none; }
body.thoughts-page .scroll-spacer .card { pointer-events: auto; }