/* =========================================================
   RANVIJAY SINGH — design system
   Palette: near-black / warm off-white, no accent color.
   Hierarchy comes from weight, scale, opacity and motion.
   Display: Inter (heavy) — Body: Inter — Utility: JetBrains Mono
   ========================================================= */

:root{
  --bg:        #0A0A0A;
  --bg-soft:   #101010;
  --bg-inv:    #F5F3EC;
  --fg:        #F5F3EC;
  --fg-inv:    #0A0A0A;
  --muted:     #8F8A7C;
  --muted-inv: #57544B;
  --line:      rgba(245,243,236,0.14);
  --line-strong: rgba(245,243,236,0.32);
  --line-inv:  rgba(10,10,10,0.14);
  --line-inv-strong: rgba(10,10,10,0.32);

  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.8,.24,1);
  --dur-s: .35s;
  --dur-m: .7s;
  --dur-l: 1.1s;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .7s ease both;
}
@keyframes page-in{ from{ opacity:0; } to{ opacity:1; } }

::selection{ background: var(--fg); color: var(--fg-inv); }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before{ content: "// "; opacity:.6; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

p{ margin: 0; }

.text-muted{ color: var(--muted); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- nav ---------- */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 22px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(10,10,10,.9), rgba(10,10,10,0));
  transition: background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), padding var(--dur-s) var(--ease);
}
.nav.is-scrolled{
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__mark{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.nav__mark span{ color: var(--muted); }
.nav__links{
  display:flex;
  gap: clamp(18px, 3vw, 34px);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}
.nav__links a{
  position: relative;
  padding-bottom: 3px;
  color: var(--fg);
}
.nav__links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:1px; background: var(--fg);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-s) var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after,
.nav__links a[aria-current="page"]::after{ transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active,
.nav__links a[aria-current="page"]{ color: var(--fg); }
.nav__links a:not(.is-active){ color: var(--muted); }
.nav__links a:hover{ color: var(--fg); }
.nav__links .n{ color: var(--muted); margin-right: 6px; }
/* ---------- mobile nav ---------- */
.nav__toggle{
  display:none;
  width: 34px; height: 26px;
  position: relative;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav__toggle span{
  position:absolute; left:0; right:0; height:1px; background: var(--fg);
  transition: transform .35s var(--ease), opacity .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:nth-child(1){ top: 4px; }
.nav__toggle span:nth-child(2){ top: 13px; }
.nav__toggle span:nth-child(3){ top: 22px; }
.nav__toggle.is-open span:nth-child(1){ top: 13px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2){ opacity: 0; }
.nav__toggle.is-open span:nth-child(3){ top: 13px; transform: rotate(-45deg); }

.nav__mobile{
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  display:flex; flex-direction:column;
  justify-content:center;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.nav__mobile.is-open{
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear 0s;
}
.nav__mobile a{
  display:block;
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(30px, 9vw, 46px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.nav__mobile .n{ font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-right: 14px; font-weight:400; }

@media (max-width: 640px){
  .nav__links{ display:none; }
  .nav__toggle{ display:block; }
}
@media (min-width: 641px){
  .nav__mobile{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  min-height: 100svh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero__lines{ overflow: hidden; }
.hero h1{
  font-size: clamp(42px, 8.4vw, 108px);
}
.hero .line{ overflow:hidden; }
.hero .line span{
  display:block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.hero.is-loaded .line:nth-child(1) span{ transition-delay: .05s; }
.hero.is-loaded .line:nth-child(2) span{ transition-delay: .16s; }
.hero.is-loaded .line:nth-child(3) span{ transition-delay: .27s; }
.hero.is-loaded .line span{ transform: translateY(0); opacity: 1; }

.hero__sub{
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(15px,1.6vw,18px);
  color: var(--muted);
  opacity:0; transform: translateY(14px);
  transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s;
}
.hero.is-loaded .hero__sub{ opacity:1; transform: translateY(0); }

.hero__eyebrow{
  opacity:0; transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero.is-loaded .hero__eyebrow{ opacity:1; transform: translateY(0); }

.hero__scroll{
  position:absolute; bottom: 34px; left: var(--gutter);
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  opacity:0; transition: opacity 1s var(--ease) .9s;
}
.hero.is-loaded .hero__scroll{ opacity:1; }
.hero__scroll i{
  width:1px; height:26px; background: var(--line-strong);
  position:relative; overflow:hidden; display:block;
}
.hero__scroll i::after{
  content:""; position:absolute; left:0; top:-100%; width:100%; height:100%;
  background: var(--fg);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }

/* ---------- (marquee ticker removed — replaced by nothing; hero flows straight into the concept section) ---------- */

/* ---------- sections ---------- */
section{ padding: clamp(70px,12vw,150px) 0; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap: 24px;
  margin-bottom: clamp(36px,6vw,64px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2{ font-size: clamp(28px,4vw,44px); overflow:hidden; }
.section-head h2 span{ display:inline-block; }
[data-reveal] .section-head h2 span,
.section-head h2 span{
  transform: translateY(100%);
  transition: transform .9s var(--ease);
}
[data-reveal].in-view h2 span{ transform: translateY(0); }
.section-head .idx{ font-family: var(--font-mono); color: var(--muted); font-size: 13px; }

[data-reveal]{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }
[data-reveal="stagger"] > *{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal="stagger"].in-view > *{ opacity:1; transform: translateY(0); }
[data-reveal="stagger"].in-view > *:nth-child(1){ transition-delay: .02s; }
[data-reveal="stagger"].in-view > *:nth-child(2){ transition-delay: .1s; }
[data-reveal="stagger"].in-view > *:nth-child(3){ transition-delay: .18s; }
[data-reveal="stagger"].in-view > *:nth-child(4){ transition-delay: .26s; }

/* ---------- about / bio ---------- */
.about{ display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,6vw,90px); }
.about p{ font-size: clamp(17px,2vw,20px); color: var(--fg); }
.about p + p{ margin-top: 18px; color: var(--muted); font-size: 16px; }
.about__facts{ font-family: var(--font-mono); font-size: 13.5px; }
.about__facts .row{
  display:flex; justify-content:space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.about__facts .row b{ color: var(--fg); font-weight: 500; text-align:right; }
@media (max-width: 820px){ .about{ grid-template-columns: 1fr; } }

/* ---------- framework tree ---------- */
.tree{ font-family: var(--font-mono); font-size: clamp(14px,1.8vw,16.5px); }
.tree__root{ color: var(--muted); margin-bottom: 6px; }
.tree__node{
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.tree__node::before{
  content: attr(data-branch);
  position:absolute; left:0; top:20px; color: var(--muted);
}
.tree__node .label{
  display:flex; align-items:center; gap: 12px;
  font-weight: 600; letter-spacing: -0.01em;
  transition: transform var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}
.tree__node .n{ color: var(--muted); }
.tree__node .desc{
  max-height:0; overflow:hidden; opacity:0;
  transition: max-height var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease), margin var(--dur-m) var(--ease);
  font-family: var(--font-body); font-size: 15px; color: var(--muted);
  max-width: 620px;
}
.tree__node:hover .label,
.tree__node:focus-within .label{ transform: translateX(8px); }
.tree__node:hover .desc,
.tree__node:focus-within .desc{ max-height: 120px; opacity:1; margin-top: 10px; }

/* ---------- work cards ---------- */
.cards{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card{
  background: var(--bg);
  padding: 34px 30px;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
  position: relative;
}
.card:hover{ background: var(--bg-soft); transform: translateY(-4px); }
.card__status{ font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.card h3{ font-size: 22px; margin-top: 14px; }
.card p{ margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.card__go{
  display:inline-flex; align-items:center; gap:8px;
  margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px;
}
.card__go svg{ transition: transform var(--dur-s) var(--ease); }
.card:hover .card__go svg{ transform: translate(4px,-4px); }
@media (max-width: 900px){ .cards{ grid-template-columns: 1fr; } }

/* ---------- writing / blog list ---------- */
.posts{ display:flex; flex-direction: column; }
.post-row{
  display:grid; grid-template-columns: 110px 1fr auto; gap: 26px; align-items:start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding var(--dur-s) var(--ease);
}
.post-row .date{ font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.post-row .title-wrap{ overflow:hidden; }
.post-row h3{ font-size: clamp(19px,2.4vw,26px); font-weight: 700; letter-spacing:-0.02em; transition: transform var(--dur-s) var(--ease); }
.post-row .excerpt{ margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 560px; line-height: 1.6; }
.post-row .tag{ font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 100px; white-space:nowrap; margin-top: 4px; }
.post-row:hover{ padding-left: 10px; }
.post-row:hover h3{ transform: translateX(4px); }
@media (max-width: 700px){ .post-row{ grid-template-columns: 1fr; gap:8px; } }

/* ---------- related posts / footer nav on articles ---------- */
.related{ max-width: 720px; margin: 0 auto; padding: 50px var(--gutter) 0; }
.related__label{ font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-bottom: 20px; }
.related__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related__card{ background: var(--bg); padding: 24px; transition: background var(--dur-s) var(--ease); }
.related__card:hover{ background: var(--bg-soft); }
.related__card .eyebrow{ margin-bottom: 10px; }
.related__card h4{ font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing:-0.01em; }
@media (max-width: 640px){ .related__grid{ grid-template-columns: 1fr; } }

/* ---------- contact / footer ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer__top{ display:flex; justify-content:space-between; align-items:flex-end; gap: 30px; flex-wrap:wrap; }
.footer h2{ font-size: clamp(30px,5vw,58px); max-width: 640px; }
.footer__links{ display:flex; flex-direction:column; gap: 10px; font-family: var(--font-mono); font-size: 14px; }
.footer__links a{ display:inline-flex; align-items:center; gap:8px; width:fit-content; border-bottom: 1px solid transparent; }
.footer__links a:hover{ border-color: var(--fg); }
.footer__bottom{
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line);
  display:flex; justify-content:space-between; color: var(--muted); font-family: var(--font-mono); font-size: 11.5px;
  flex-wrap: wrap; gap:10px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing:.02em;
  padding: 13px 22px; border: 1px solid var(--line-strong);
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn:hover{ background: var(--fg); color: var(--fg-inv); border-color: var(--fg); }

/* ---------- blog post page ---------- */
.progress{
  position: fixed; top:0; left:0; height: 2px; background: var(--fg);
  z-index: 200; width:0%;
  transition: width .08s linear;
}
.post-hero{ padding-top: 150px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-hero h1{ font-size: clamp(32px,5.6vw,60px); margin-top: 18px; }
.post-meta{ display:flex; gap: 18px; margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); flex-wrap:wrap; }
.prose{ max-width: 720px; margin: 0 auto; padding: 60px var(--gutter) 0; font-size: 18px; line-height: 1.75; }
.prose h2{ font-size: 27px; margin-top: 52px; margin-bottom: 16px; font-weight: 750; }
.prose p{ margin-bottom: 20px; color: rgba(245,243,236,0.92); }
.prose p.lead{ font-size: 21px; color: var(--fg); }
.prose blockquote{
  margin: 34px 0; padding-left: 22px; border-left: 2px solid var(--line-strong);
  font-style: italic; color: var(--muted); font-size: 19px;
}
.prose ul{ margin: 0 0 20px; padding-left: 22px; color: rgba(245,243,236,0.92); }
.prose li{ margin-bottom: 8px; }
.prose img{ max-width: 100%; height: auto; margin: 30px 0; display:block; }
.prose figure{ margin: 30px 0; }
.prose figcaption{ font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.prose pre{ background: var(--bg-soft); border: 1px solid var(--line); padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; margin: 24px 0; }
.prose code{ font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-soft); padding: 2px 6px; }
.prose pre code{ background: none; padding: 0; }
.prose a{ text-decoration: underline; text-underline-offset: 3px; }
.prose strong{ color: var(--fg); }
.share{
  max-width: 720px; margin: 60px auto 0; padding: 26px var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap:wrap;
}
.share__label{ font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.share__btns{ display:flex; gap: 10px; }
.share__btns button, .share__btns a{
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
  padding: 9px 14px; cursor:pointer;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}
.share__btns button:hover, .share__btns a:hover{ background: var(--fg); color: var(--fg-inv); }

/* ---------- WordPress pagination ---------- */
.page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 38px; height: 38px; padding: 0 10px;
  margin-right: 8px;
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}
a.page-numbers:hover{ background: var(--fg); color: var(--fg-inv); }
.page-numbers.current{ background: var(--fg); color: var(--fg-inv); border-color: var(--fg); }
.page-numbers.dots{ border: none; }

/* =========================================================
   CINEMATIC SCROLL SYSTEM
   Pinned sections whose contents are scrubbed directly by
   scroll position (no CSS transition — driven every frame
   by JS for a 1:1 feel, like Apple/Tesla product pages).
   ========================================================= */

.progress-global{
  position: fixed; top:0; left:0; height: 2px; background: var(--fg);
  z-index: 300; width:0%; transform-origin: left;
}

/* ---- glow / ambient background ---- */
.glow{
  position: fixed;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(245,243,236,0.055) 0%, rgba(245,243,236,0) 68%);
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ---- pinned wrapper pattern ---- */
.pin-wrap{ position: relative; z-index: 1; }
.pin-inner{
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- hero (now pinned + scrubbed) ---- */
.hero{ height: 148svh; padding: 0; }
.hero .pin-inner{ flex-direction: column; justify-content: center; }
.hero__stage{ width: 100%; will-change: transform, opacity, filter; }

/* ---- concept / asymmetric curve section ---- */
.concept{ height: 230svh; }
.concept .pin-inner{ flex-direction: column; }
.concept__head{
  text-align: center;
  will-change: transform, opacity;
}
.concept__head .eyebrow{ justify-content:center; display:flex; }
.concept__head h2{
  font-size: clamp(30px, 5.6vw, 64px);
  margin-top: 14px;
}
.concept__curve-wrap{
  position: relative;
  width: min(1000px, 92vw);
  margin-top: clamp(20px, 4vw, 50px);
}
.concept__curve-wrap svg{ width: 100%; height: auto; display:block; overflow: visible; }
.concept__curve-path{ fill:none; stroke: var(--fg); stroke-width: 2.5; }
.concept__curve-dot{ fill: var(--fg); }
.concept__labels{
  position:absolute; inset:0;
  font-family: var(--font-mono); font-size: clamp(12px,1.6vw,15px);
}
.concept__label{
  position:absolute;
  color: var(--muted);
  opacity: 0;
  will-change: transform, opacity;
  white-space: nowrap;
}
.concept__label b{ color: var(--fg); font-weight: 600; }
.concept__label--down{ left: 4%; bottom: 6%; }
.concept__label--up{ right: 2%; top: -6%; text-align:right; }
.concept__label--claim{
  left: 50%; bottom: -18%; transform: translateX(-50%);
  text-align:center; font-size: clamp(14px,2vw,18px); color: var(--fg);
  white-space: normal; width: min(560px, 84vw);
}

/* ---- framework panel stack ---- */
.framework-pin{ height: 320svh; }
.framework-pin .pin-inner{ padding: 0; }
.panel{
  position:absolute; inset:0;
  display:flex; align-items:center;
  will-change: transform;
  background: var(--bg);
}
.panel--invert{ background: var(--bg-inv); color: var(--fg-inv); }
.panel__wrap{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width:100%; display:grid; grid-template-columns: auto 1fr; gap: clamp(24px,5vw,80px); align-items:center; }
.panel__num{
  font-family: var(--font-mono);
  font-size: clamp(90px, 15vw, 220px);
  font-weight: 500;
  line-height: 0.8;
  color: var(--muted);
  opacity: .5;
}
.panel--invert .panel__num{ color: var(--muted-inv); }
.panel__body .eyebrow{ margin-bottom: 14px; }
.panel--invert .panel__body .eyebrow{ color: var(--muted-inv); }
.panel--invert .eyebrow::before{ opacity:.5; }
.panel__body h3{ font-size: clamp(32px, 5.4vw, 68px); }
.panel__body p{ margin-top: 20px; max-width: 520px; font-size: clamp(16px,1.8vw,19px); color: var(--muted); }
.panel--invert .panel__body p{ color: var(--muted-inv); }
.panel__index{
  position:absolute; bottom: 40px; left: var(--gutter);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display:flex; gap: 8px;
}
.panel--invert .panel__index{ color: var(--muted-inv); }
@media (max-width: 760px){
  .panel__wrap{ grid-template-columns: 1fr; }
  .panel__num{ font-size: clamp(60px,22vw,120px); }
}

/* ---- card tilt (JS-driven transform, transition only on release) ---- */
.card{ transform-style: preserve-3d; transition: background var(--dur-s) var(--ease), transform .5s var(--ease); }
.card__go svg{ transition: transform var(--dur-s) var(--ease); }

@media (prefers-reduced-motion: reduce){
  .hero{ height:auto; }
  .hero .pin-inner{ position:relative; height:auto; padding-top:150px; padding-bottom:60px; }
  .concept{ height:auto; }
  .concept .pin-inner{ position:relative; height:auto; padding:100px 0; }
  .concept__label{ opacity:1 !important; position:static; display:block; margin-bottom:10px; transform:none !important; }
  .concept__labels{ position:static; margin-top:30px; }
  .framework-pin{ height:auto; }
  .framework-pin .pin-inner{ position:relative; height:auto; }
  .panel{ position:relative; opacity:1 !important; transform:none !important; padding: 90px 0; }
  .glow{ display:none; }
}
