/* Vivid grade: richer paper, no milky haze, cards that sit on colour */
:root{--paper:#0B1020}html[data-theme="light"]{--paper:#F4F7FB}
html{background:#0B1020}html[data-theme="light"]{background:#F4F7FB}
.haze{background:radial-gradient(70% 55% at 50% 22%,rgba(255,176,32,.08),transparent 70%)}
.work{background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1.3px),linear-gradient(180deg,rgba(255,176,32,.12),rgba(255,176,32,0) 38%,rgba(76,125,255,0) 52%,rgba(76,125,255,.12) 76%,rgba(76,125,255,0) 100%);background-size:24px 24px,100% 100%}
.tlb{background:linear-gradient(var(--paper),var(--paper2) 40%,var(--paper2))}
.mo-art{background:radial-gradient(120% 90% at 50% 100%,var(--paper2),var(--paper) 60%,var(--paper))}
.f-pat{background:linear-gradient(140deg,var(--paper2),var(--paper))!important}
/* Dark theme: About meta/story + hero painting (Price feedback 2026-11-14).
   The story text, fact cards and skill chips were still light-theme
   colours on the dark page, and the hero painting stayed daylight-bright
   against the night sky. All scoped to dark so light mode is untouched. */
html[data-theme="dark"] .ab-story p,
html[data-theme="dark"] .ab p{color:var(--ink2)}
html[data-theme="dark"] .facts>div,
html[data-theme="dark"] .facts>a.f-sys{background:var(--paper2);border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .skills span{background:var(--paper2);border-color:rgba(255,255,255,.12)}
/* Netlify badge: Netlify injects a "Powered by Netlify" badge (an iframe,
   id #nl-badge-frame, bottom-right) on free-plan sites, and it sits on top
   of the Agentation feedback button. Hide it with one rule — the !important
   beats the iframe's inline styles. The official way to remove it is a paid
   Netlify plan; this just hides it on the site itself. */
#nl-badge-frame,#nl-hud-frame{display:none!important}

/* Dark theme: hero painting back to its original peach sky (Price feedback
   2026-11-14 — "wapas se peach sky theme hi apply karde"). The whole night
   grading is gone: no blue colour wash, no brightness filter, no top
   darkening, no sprite grading — the painting is the daylight peach scene
   again, in dark mode too. The only thing kept is the soft radial mask
   from the rectangle fix, so the painting's edges still dissolve into the
   night sky instead of sitting as a hard rectangle. Scoped to dark; light
   mode was always peach and is untouched. */
html[data-theme="dark"] .art .pic{-webkit-mask-image:radial-gradient(ellipse 96% 92% at 50% 50%,#000 45%,transparent 92%);mask-image:radial-gradient(ellipse 96% 92% at 50% 50%,#000 45%,transparent 92%)}
/* phones and tablets: floating chrome is solid enough to read, and copy fades out before it reaches it */
@media (max-width:900px),(pointer:coarse){
 .nav .glass,.mbar.glass{background:rgba(255,250,245,.94)}
 .topfade{position:fixed;left:0;right:0;top:0;height:86px;z-index:35;pointer-events:none;background:linear-gradient(var(--paper,#0B1020) 55%,rgba(253,240,226,0));opacity:0;transition:opacity .35s}
 html.pastHero .topfade,html.casepg .topfade{opacity:1}
 html.casepg .topfade{height:128px}
 .mbar{z-index:36!important}
}

/* touch: every primary target is at least 44px tall */
@media (pointer:coarse){
 .links a,.links button{min-height:44px;display:inline-flex;align-items:center}
 .card .go,.card.end .go,.mo-go,.next .go,.foot .mail{min-height:44px;display:inline-flex;align-items:center}
 .gcopy .gmail{display:inline-block;padding:10px 0;margin:-10px 0}
 .hint{min-height:44px}
}
/* case pages: give side media a real gutter so phones never touch the edge or slide under the nav */
@media (min-width:901px){
 .story{width:min(1320px,calc(100vw - 112px));margin-left:calc(50% - min(660px,50vw - 56px))}
 .beat.has-pt .md.phone{margin-right:8px}
}
