/* Thinking page (/thinking/) — editorial manifesto on how Xellum thinks
   before it builds. Reuses site.css's grid/label/button/divider primitives;
   everything here is page-scoped under body.thk so nothing else is touched.
   Palette below is the page's own accent set (close kin of, but distinct
   from, the sitewide tokens) — used only for text/borders/glow on top of
   the shared background layers, never as a full repaint. */

body.thk{
  --thk-bg:#08090D; --thk-bg2:#0B0C12; --thk-elevated:#101119;
  --thk-text:#F2F0EA; --thk-text2:#B7B5BC; --thk-muted:#777680; --thk-dim:#555560;
  --thk-accent:#A982FF; --thk-accent-light:#C0A5FF; --thk-accent-bright:#D0C0FF; --thk-accent-deep:#7352D6;
  --thk-glow:#8E9BFF;
  --thk-border:#20212B; --thk-border2:#2B2B38;
}

/* ---------- progressive reveal ---------- */
[data-reveal]{opacity:0;transform:translateY(22px);transition:opacity 720ms var(--ease-editorial),transform 720ms var(--ease-editorial)}
[data-reveal].is-in{opacity:1;transform:none}
.thk-contradictions [data-reveal]:nth-child(2){transition-delay:90ms}
.thk-contradictions [data-reveal]:nth-child(3){transition-delay:180ms}
.thk-contradictions [data-reveal]:nth-child(4){transition-delay:270ms}
.thk-compare__list li:nth-child(2),.thk-defaults li:nth-child(2),.thk-questions li:nth-child(2),.thk-capabilities li:nth-child(2){transition-delay:70ms}
.thk-compare__list li:nth-child(3),.thk-defaults li:nth-child(3),.thk-questions li:nth-child(3),.thk-capabilities li:nth-child(3){transition-delay:140ms}
.thk-compare__list li:nth-child(4),.thk-defaults li:nth-child(4),.thk-questions li:nth-child(4),.thk-capabilities li:nth-child(4){transition-delay:210ms}
.thk-defaults li:nth-child(5),.thk-questions li:nth-child(5),.thk-capabilities li:nth-child(5){transition-delay:280ms}
.thk-defaults li:nth-child(6),.thk-questions li:nth-child(6){transition-delay:350ms}
.thk-layers__list li:nth-child(2){transition-delay:80ms}.thk-layers__list li:nth-child(3){transition-delay:160ms}
.thk-layers__list li:nth-child(4){transition-delay:240ms}.thk-layers__list li:nth-child(5){transition-delay:320ms}.thk-layers__list li:nth-child(6){transition-delay:400ms}
.thk-reduction li:nth-child(2),.thk-hierarchy li:nth-child(2){transition-delay:80ms}
.thk-reduction li:nth-child(3),.thk-hierarchy li:nth-child(3){transition-delay:160ms}
.thk-reduction li:nth-child(4),.thk-hierarchy li:nth-child(4){transition-delay:240ms}
.thk-reduction li:nth-child(5),.thk-hierarchy li:nth-child(5){transition-delay:320ms}
.thk-examples [data-reveal]:nth-child(2){transition-delay:100ms}.thk-examples [data-reveal]:nth-child(3){transition-delay:200ms}
.thk-principle:nth-child(2){transition-delay:60ms}.thk-principle:nth-child(3){transition-delay:120ms}
.thk-principle:nth-child(4){transition-delay:180ms}.thk-principle:nth-child(5){transition-delay:240ms}.thk-principle:nth-child(6){transition-delay:300ms}
.thk-manifesto span:nth-child(2){transition-delay:110ms}.thk-manifesto span:nth-child(3){transition-delay:220ms}
.thk-manifesto span:nth-child(4){transition-delay:330ms}.thk-manifesto span:nth-child(5){transition-delay:440ms}

/* Content must never depend on JS/animation to be visible — see the
   <noscript> stylesheet override in thinking/index.njk for the no-JS case. */
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}
}

/* ---------- shared editorial primitives ---------- */
.thk .section-label{margin-bottom:56px}
.thk-heading{margin:0 0 clamp(48px,7vh,88px);font-weight:300;font-size:var(--size-display-2);line-height:.98;letter-spacing:-.035em;color:var(--thk-text);max-width:16ch}
.thk-heading-follow{margin:-32px 0 clamp(48px,7vh,88px);font-weight:300;font-size:var(--size-display-3);line-height:1;letter-spacing:-.03em;color:var(--thk-accent-light)}
.thk-conclusion{margin:clamp(40px,6vh,72px) 0 0;font-weight:300;font-size:clamp(1.3rem,2vw,1.7rem);line-height:1.4;letter-spacing:-.02em;color:var(--thk-text2);max-width:34ch}
.thk-strong-statement{margin:clamp(48px,7vh,88px) 0 0;font-weight:400;font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.18;letter-spacing:-.03em;color:var(--thk-text)}

/* ---------- 01 hero ---------- */
.thk-hero{padding:clamp(150px,22vh,240px) clamp(20px,5vw,80px) clamp(80px,12vh,140px)}
.thk-hero__headline{margin:0 0 clamp(28px,4vh,44px);font-weight:300;font-size:clamp(3.5rem,9vw,8.5rem);line-height:.92;letter-spacing:-.04em;color:var(--thk-text)}
.thk-hero__sub{margin:0 0 clamp(56px,9vh,100px);font-weight:300;font-size:clamp(1.1rem,1.6vw,1.35rem);line-height:1.5;letter-spacing:-.01em;color:var(--thk-text2);max-width:44ch}

.thk-signal{position:relative;display:flex;align-items:center;height:1px;margin:0 0 clamp(48px,7vh,80px)}
.thk-signal__line{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--thk-border2) 15%,var(--thk-border2) 85%,transparent)}
.thk-signal__point{position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:var(--thk-glow);transform:translate(-50%,-50%);box-shadow:0 0 0 0 rgba(142,155,255,.5)}
@media (prefers-reduced-motion:no-preference){
  .thk-signal.is-in .thk-signal__point{animation:thk-pulse 2.6s ease-out 1 400ms}
}
@keyframes thk-pulse{
  0%{box-shadow:0 0 0 0 rgba(142,155,255,.5)}
  60%{box-shadow:0 0 0 14px rgba(142,155,255,0)}
  100%{box-shadow:0 0 0 0 rgba(142,155,255,0)}
}
.thk-hero__loop{display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,64px)}
.thk-hero__loop-item{display:flex;flex-direction:column;gap:8px;font-weight:300;font-size:clamp(1rem,1.3vw,1.15rem);letter-spacing:-.01em;color:var(--thk-text2)}
.thk-hero__loop-tag{font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--thk-muted)}

/* ---------- 02 what we believe ---------- */
.thk-statement{margin:0 0 clamp(64px,10vh,110px);font-weight:300;font-size:var(--size-display-1);line-height:.96;letter-spacing:-.04em;color:var(--thk-text);max-width:14ch}
.thk-contradictions{display:flex;flex-direction:column}
.thk-contradiction{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:clamp(16px,3vw,32px);padding:clamp(20px,3vh,32px) 0;border-top:1px solid var(--thk-border)}
.thk-contradictions .thk-contradiction:last-child{border-bottom:1px solid var(--thk-border)}
.thk-contradiction__a{font-weight:300;font-size:clamp(1.2rem,2vw,1.7rem);letter-spacing:-.02em;color:var(--thk-dim);text-align:right}
.thk-contradiction__ne{font-family:var(--font-mono);font-size:14px;color:var(--thk-accent);text-align:center}
.thk-contradiction__b{font-weight:300;font-size:clamp(1.2rem,2vw,1.7rem);letter-spacing:-.02em;color:var(--thk-text)}

/* ---------- 03 the first question ---------- */
.thk-compare{display:grid;grid-template-columns:1fr 40px 1fr;gap:0;align-items:start}
.thk-compare__col{display:flex;flex-direction:column;gap:4px}
.thk-compare__label{margin-bottom:20px;font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--thk-muted)}
.thk-compare__col--investigation .thk-compare__label{color:var(--thk-accent-light)}
.thk-compare__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.thk-compare__list li{padding:18px 0;border-top:1px solid var(--thk-border);font-weight:300;font-size:clamp(1.05rem,1.5vw,1.3rem);letter-spacing:-.015em;transition:color 480ms var(--ease-editorial),opacity 480ms var(--ease-editorial)}
.thk-compare__col--assumption li{color:var(--thk-dim)}
.thk-compare__col--investigation li{color:var(--thk-text2)}
.thk-compare.is-in .thk-compare__col--investigation li{color:var(--thk-text)}
.thk-compare__connector{position:relative}
.thk-compare__connector::before{content:'';position:absolute;left:50%;top:24px;bottom:24px;width:1px;background:var(--thk-border2);transform:translateX(-50%)}

/* ---------- 04 symptom ≠ system ---------- */
.thk-layers{margin:0 0 clamp(56px,9vh,100px);display:flex;flex-direction:column;align-items:flex-start}
.thk-layers__top{font-weight:400;font-size:clamp(1.4rem,2.4vw,2rem);letter-spacing:-.02em;color:var(--thk-text);padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--thk-border2)}
.thk-layers__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.thk-layers__list li{position:relative;padding-left:28px;font-family:var(--font-mono);font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--thk-text2)}
.thk-layers__list li::before{content:'';position:absolute;left:0;top:50%;width:14px;height:1px;background:var(--thk-border2);transform:translateY(-50%)}
.thk-layers__list li:last-child{color:var(--thk-accent-light)}
.thk-layers__list li:last-child::before{background:var(--thk-glow)}

/* ---------- 05 think in systems ---------- */
.thk-system-map{position:relative;margin:0 0 clamp(56px,9vh,100px);display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,80px);align-items:start}
.thk-system-map__loop{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.thk-system-map__loop li{font-weight:300;font-size:clamp(1.1rem,1.6vw,1.4rem);letter-spacing:-.02em;color:var(--thk-text)}
.thk-system-map__loop li span{color:var(--thk-accent-light)}
.thk-system-map__layer{list-style:none;margin:20px 0 0;padding:20px 0 0;border-top:1px solid var(--thk-border2);display:flex;flex-direction:column;gap:12px}
.thk-system-map__layer li{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--thk-muted)}

/* ---------- 06 first principles ---------- */
.thk-reduction,.thk-hierarchy{list-style:none;margin:0 0 clamp(48px,7vh,80px);padding:0;display:flex;flex-direction:column;max-width:26ch}
.thk-reduction li,.thk-hierarchy li{position:relative;padding:16px 0 16px 30px;font-weight:300;font-size:clamp(1.2rem,1.8vw,1.55rem);letter-spacing:-.02em;color:var(--thk-text2);border-top:1px solid var(--thk-border)}
.thk-reduction li::before,.thk-hierarchy li::before{content:'↓';position:absolute;left:0;top:16px;font-family:var(--font-mono);font-size:13px;color:var(--thk-dim)}
.thk-reduction li:first-child::before,.thk-hierarchy li:first-child::before{content:''}
.thk-reduction li:last-child,.thk-hierarchy__final{color:var(--thk-text);font-weight:400}
.thk-hierarchy--compact{max-width:20ch;margin-bottom:clamp(48px,7vh,80px)}
.thk-examples{display:flex;flex-direction:column;gap:0}
.thk-example{display:flex;flex-wrap:wrap;align-items:baseline;gap:16px;padding:22px 0;border-top:1px solid var(--thk-border)}
.thk-examples .thk-example:last-child{border-bottom:1px solid var(--thk-border)}
.thk-example__from{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;color:var(--thk-dim)}
.thk-example__arrow{color:var(--thk-muted)}
.thk-example__to{font-weight:300;font-size:clamp(1.05rem,1.5vw,1.3rem);letter-spacing:-.015em;color:var(--thk-text)}

/* ---------- 08 AI capabilities ---------- */
.thk-capabilities{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:14px}
.thk-capabilities li{padding:10px 20px;font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--thk-text2);border:1px solid var(--thk-border2);border-radius:999px;transition:color 480ms ease,border-color 480ms ease}
.thk-capabilities li.is-in{color:var(--thk-accent-light);border-color:rgba(169,130,255,.4)}

/* ---------- 09 leverage field ---------- */
.thk-leverage{position:relative;height:60px;margin:clamp(40px,6vh,72px) 0}
.thk-leverage__line{position:absolute;left:0;right:0;top:50%;height:1px;background:var(--thk-border2);transform:translateY(-50%)}
.thk-leverage__dot{position:absolute;top:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--thk-dim);transform:translateY(-50%)}
.thk-leverage__major{position:absolute;top:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--thk-glow);transform:translateY(-50%)}
.thk-leverage__halo{position:absolute;inset:-16px;border-radius:50%;background:radial-gradient(circle,rgba(142,155,255,.35),transparent 70%)}
@media (prefers-reduced-motion:no-preference){
  .thk-leverage.is-in .thk-leverage__major{animation:thk-pulse 2.6s ease-out 1 500ms}
}

/* ---------- 10 loop diagram ---------- */
.thk-loop{position:relative;max-width:420px;margin:clamp(40px,6vh,72px) auto clamp(56px,8vh,96px);color:var(--thk-border2)}
.thk-loop__svg{width:100%;height:auto;color:inherit}
.thk-loop.is-in{color:var(--thk-accent-deep)}
.thk-loop__label{position:absolute;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--thk-text2)}
.thk-loop__label--tl{left:12%;top:14%}
.thk-loop__label--tr{right:8%;top:14%}
.thk-loop__label--br{right:8%;bottom:14%}
.thk-loop__label--bl{left:12%;bottom:14%}
.thk-loop-statements{display:flex;flex-direction:column;gap:20px;max-width:36ch;margin:0 auto;text-align:center}
.thk-loop-statements p{margin:0;font-weight:300;font-size:clamp(1.1rem,1.7vw,1.4rem);letter-spacing:-.02em;color:var(--thk-text2)}

/* ---------- 11 what we question ---------- */
.thk-defaults,.thk-questions{list-style:none;margin:0;padding:0}
.thk-defaults{margin-bottom:clamp(56px,8vh,96px)}
.thk-defaults li{padding:14px 0;font-weight:300;font-size:clamp(1.3rem,2.3vw,2.1rem);letter-spacing:-.025em;color:var(--thk-dim);transition:color 560ms ease}
.thk-defaults.is-in li{color:var(--thk-muted)}
.thk-questions{display:flex;flex-wrap:wrap;gap:clamp(20px,4vw,48px)}
.thk-questions li{font-weight:400;font-size:clamp(1.4rem,2.6vw,2.4rem);letter-spacing:-.03em;color:var(--thk-dim);transition:color 640ms ease}
.thk-questions.is-in li{color:var(--thk-accent-bright)}

/* ---------- 12 six principles ---------- */
.thk-principles{display:flex;flex-direction:column}
.thk-principle{display:grid;grid-template-columns:56px minmax(0,1fr) minmax(0,1fr);align-items:baseline;gap:24px;padding:26px 0;border-top:1px solid var(--thk-border);cursor:default;outline:none}
.thk-principles .thk-principle:last-child{border-bottom:1px solid var(--thk-border)}
.thk-principle__idx{font-family:var(--font-mono);font-size:13px;color:var(--thk-dim);transition:color 400ms ease}
.thk-principle__name{font-weight:300;font-size:clamp(1.3rem,2vw,1.7rem);letter-spacing:-.025em;color:var(--thk-text2);transition:color 400ms ease}
.thk-principle__note{font-size:var(--size-body-sm);color:var(--thk-muted);transition:color 400ms ease}
.thk-principle:hover,.thk-principle:focus-visible{background:rgba(243,240,232,.02)}
.thk-principle:hover .thk-principle__idx,.thk-principle:focus-visible .thk-principle__idx{color:var(--thk-accent-light)}
.thk-principle:hover .thk-principle__name,.thk-principle:focus-visible .thk-principle__name{color:var(--thk-text)}
.thk-principle:hover .thk-principle__note,.thk-principle:focus-visible .thk-principle__note{color:var(--thk-text2)}
.thk-principle:focus-visible{outline:1px solid rgba(169,130,255,.6);outline-offset:-2px}

/* ---------- 13 final manifesto ---------- */
.thk-s13{padding:clamp(140px,20vh,220px) 0}
.thk-manifesto{margin:0;display:flex;flex-direction:column;gap:clamp(14px,2.4vh,26px)}
.thk-manifesto span{display:block;font-weight:300;font-size:clamp(2rem,4.4vw,4rem);line-height:1.05;letter-spacing:-.035em;color:var(--thk-text)}

/* ---------- 14 final CTA ---------- */
.thk-s14{padding-bottom:clamp(140px,20vh,220px)}
.thk-cta-heading{margin:0 0 24px;font-weight:300;font-size:var(--size-display-2);line-height:1;letter-spacing:-.035em;color:var(--thk-text);max-width:18ch}
.thk-cta-sub{margin:0 0 44px;font-weight:300;font-size:clamp(1.1rem,1.6vw,1.3rem);line-height:1.5;color:var(--thk-text2)}
.thk-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.thk-cta-secondary{color:var(--thk-text2)}
.thk-cta-secondary:hover{color:var(--thk-text)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .thk-contradiction{grid-template-columns:1fr;text-align:left;gap:6px;justify-items:start}
  .thk-contradiction__a,.thk-contradiction__b{text-align:left}
  .thk-compare{grid-template-columns:1fr}
  .thk-compare__connector{display:none}
  .thk-compare__col--investigation{margin-top:32px}
  .thk-system-map{grid-template-columns:1fr}
}
@media (max-width:760px){
  .thk-hero{padding-top:150px}
  .thk-hero__headline{font-size:clamp(3rem,13vw,4.5rem)}
  .thk-principle{grid-template-columns:36px 1fr;row-gap:6px}
  .thk-principle__note{grid-column:2}
}
