/* Phone design (≤767px) — app look and feel: lead bar, compact hide-on-scroll header, bottom tab bar, bottom-sheet menu */
:root{--header-h:60px; --lead-h:46px; --tab-h:68px; --r-lg:22px}
body{font-size:1.0625rem; padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}
.wrap{width:calc(100% - 36px)}
h1{font-size:clamp(2.3rem,11vw,3.4rem)}
h2{font-size:clamp(1.85rem,8.4vw,2.6rem)}
.section{padding:72px 0}
.nav,.menu-btn,.header-cta .btn{display:none}
.header-in{gap:12px}
.header-cta{margin-left:auto}
.theme-toggle{width:44px; height:44px}
.brand small{display:none}
.brand-mark{width:40px; height:40px}
.brand-mark svg{width:30px; height:30px}
.site-header{background:color-mix(in srgb,var(--bg) 90%,transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); box-shadow:0 1px 0 var(--line)}
.site-header.hide{transform:translateY(calc(-100% - var(--lead-h)))}

.hero{min-height:auto; padding:30px 0 70px}
.hero-grid{grid-template-columns:1fr; gap:28px}
.hero h1{font-size:clamp(2.7rem,13vw,4rem)}
.hero-visual{order:-1; max-width:300px}
.orbit li{transform:rotate(calc(var(--i) * 60deg)) translateX(150px) rotate(calc(var(--i) * -60deg)) rotateX(-68deg)}
.orbit .chip{font-size:.7rem; padding:6px 10px}
.hero-badge{width:96px; height:96px; right:-4%; bottom:0}
.hero-badge text{font-size:13px}
.hero-actions{flex-direction:column; align-items:stretch}
.hero-actions .btn{width:100%}
.hero-floor::before{background-size:44px 44px}
.scroll-cue{display:none}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat{padding:22px 14px; border-left:0; border-top:1px solid var(--line)}
.stat:nth-child(odd){border-right:1px solid var(--line)}
.stat:nth-child(-n+2){border-top:0}
.stat:last-child{grid-column:1/-1; border-right:0}
.marquee-row span{font-size:1.5rem}
.statement p{font-size:1.65rem}
.shift{grid-template-columns:1fr}
.shift-card[data-scroll="tilt"]:nth-child(n){transform:none; opacity:1}
.about-grid{grid-template-columns:1fr}
.facts{grid-template-columns:1fr}
.photo-stack .sticker{left:8px}
.timeline::before,.timeline .tl-fill{left:10px}
.tl-item{grid-template-columns:1fr; gap:8px; padding-left:36px; margin-bottom:36px}
.tl-item::before{left:10px; top:2px; width:18px; height:18px; margin-left:-9px}
.tl-item .tl-date,.tl-item:nth-child(n) .tl-date{grid-column:1; grid-row:1; text-align:left; padding-top:0}
.tl-item:nth-child(n) .tl-card{grid-column:1; grid-row:2; padding:20px}
.skills-split{grid-template-columns:1fr}
.flip-grid{grid-template-columns:1fr}
.flip,.flip-in{min-height:132px}
.budget-row{grid-template-columns:1fr auto; gap:8px 12px}
.budget-row .b-bar{grid-column:1/-1; grid-row:2; height:30px}
.big-figs{grid-template-columns:1fr 1fr; gap:12px}
.big-figs div{padding:16px}
.stack-list li{position:static}
.x-card{grid-template-columns:1fr; gap:12px; transform:none!important}
.x-card .x-go{width:52px; height:52px}
.steps-row{grid-template-columns:1fr}
.hpin{height:auto!important}
.hpin-sticky{position:static; height:auto; overflow:visible}
.hpin-track{transform:none!important; overflow-x:auto; scroll-snap-type:x mandatory; padding:0 18px 16px; gap:14px; contain:paint; -webkit-overflow-scrolling:touch}
.p-card{scroll-snap-align:center; flex-basis:84vw; transform:none!important}
.p-card.intro{display:none}
.hpin-progress{display:none}
/* certificates: the same 3D orbit, smaller, so several badges show at once (swipe or arrows to turn) */
.ring-stage{height:270px; perspective:900px; overflow-x:clip; margin-top:8px}
.ring li{width:140px; left:-70px; top:-112px; transform:rotateY(calc(var(--i) * 36deg)) translateZ(230px)}
.cert{padding:12px 10px; border-radius:18px}
.cert img{width:72px; height:72px; margin-bottom:8px}
.cert b{font-size:.74rem}
.cert span{font-size:.6rem; margin-top:4px}
.ring-ctrl{margin-top:20px}
.cert-list{columns:1}
.t-grid,.cat-grid,.included-grid,.grid-2,.grid-3,.grid-4,.post-list,.blog-lists{grid-template-columns:1fr}
.checklist{grid-template-columns:1fr}
.footer-grid{grid-template-columns:1fr; gap:32px}
.footer-big{font-size:3.2rem; margin-bottom:40px}
.form .row{grid-template-columns:1fr}
.field input,.field select,.field textarea{font-size:16px}
.split-cta{grid-template-columns:1fr}
.blog-index,.post{padding-inline:18px}
.post article{grid-template-columns:minmax(0,1fr); gap:24px}
.toc{position:static; grid-column:1; grid-row:auto}
.post .prose{grid-row:auto; font-size:1.06rem}
.cursor-glow{display:none}
[data-scroll="tilt"]{transform:translate3d(0,calc((1 - var(--e,1)) * 40px),0); opacity:calc(.3 + var(--e,1) * .7)}

/* lead bar */
.lead-bar{display:flex; position:sticky; font-size:15px; top:0; z-index:210; block-size:var(--lead-h); background:var(--lead-bg); color:var(--lead-fg); box-shadow:0 6px 18px -12px rgba(0,0,0,.45)}
.lead-bar a{display:flex; align-items:center; justify-content:center; gap:8px; min-block-size:44px; text-decoration:none; font-weight:700; line-height:1.1}
.lead-call{flex:1 1 auto; min-inline-size:0; justify-content:flex-start!important; padding-inline:16px; color:var(--lead-fg)}
.lead-call .icon{inline-size:20px; block-size:20px; flex:none; color:var(--lead-cta-bg)}
.lead-call .lead-label{font-weight:600; opacity:.85}
.lead-call .lead-num{white-space:nowrap; font-size:1.05em}
.lead-quote{flex:0 0 auto; padding-inline:18px; background:var(--lead-cta-bg); color:var(--lead-cta-fg); white-space:nowrap}
.lead-bar a:focus-visible{outline:3px solid var(--lead-cta-bg); outline-offset:-3px}
.lead-quote:focus-visible{outline-color:var(--lead-fg)!important}
@media (max-width:419px){ .lead-call .lead-label{display:none} .lead-call{padding-inline:12px; gap:7px} .lead-quote{padding-inline:14px} }
.lead-bar{--lead-bg:#120C0B; --lead-fg:#F7EDE7; --lead-cta-bg:#FFB547; --lead-cta-fg:#120C0B}

/* bottom tab bar */
.tabbar{display:grid; grid-template-columns:repeat(5,1fr); position:fixed; inset:auto 0 0; z-index:220; height:calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-top:1px solid var(--line)}
.tabbar a,.tabbar button{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:44px; color:var(--muted); text-decoration:none; font:600 .7rem/1 var(--font-body); background:none; border:0; cursor:pointer; -webkit-tap-highlight-color:transparent}
.tabbar .icon{width:22px; height:22px}
.tabbar a.active,.tabbar a[aria-current="page"]{color:var(--brand)}
.tabbar a:active,.tabbar button:active{transform:scale(.92)}
.tab-call .bubble{width:56px; height:56px; margin-top:-26px; border-radius:50%; display:grid; place-items:center; background:var(--brand-fill); color:var(--on-brand); box-shadow:0 10px 24px -8px var(--glow); border:4px solid var(--bg)}
.tab-call{color:var(--ink)!important}

/* bottom sheet */
.sheet{display:block; position:fixed; inset:0; z-index:400; pointer-events:none}
.sheet-backdrop{position:absolute; inset:0; background:rgba(10,6,5,.55); opacity:0; transition:opacity .35s}
.sheet-panel{position:absolute; inset:auto 0 0; max-height:88dvh; overflow:auto; background:var(--bg); border-radius:26px 26px 0 0; padding:8px 18px calc(22px + env(safe-area-inset-bottom)); transform:translateY(calc(100% + 20px)); transition:transform .45s var(--ease-out)}
.sheet.open{pointer-events:auto}
.sheet.open .sheet-backdrop{opacity:1}
.sheet.open .sheet-panel{transform:translateY(var(--drag,0px))}
.sheet.dragging .sheet-panel{transition:none}
.sheet-handle{display:block; width:56px; height:24px; margin:0 auto; background:none; border:0; cursor:pointer; position:relative}
.sheet-handle::before{content:""; position:absolute; left:8px; right:8px; top:10px; height:5px; border-radius:5px; background:var(--line-strong)}
.sheet-head{display:flex; justify-content:space-between; align-items:center; margin:6px 0 16px}
.sheet-head p{font:800 1.4rem/1.1 var(--font-display); margin:0}
.sheet-close{width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); display:grid; place-items:center}
.sheet-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; list-style:none; padding:0; margin:0}
.sheet-grid a{display:flex; flex-direction:column; gap:10px; padding:16px; min-height:88px; border-radius:18px; background:var(--surface); border:1px solid var(--line); color:var(--ink); text-decoration:none; font-weight:700; font-size:.95rem}
.sheet-grid .icon{width:24px; height:24px; color:var(--brand)}
.sheet-theme{display:flex; align-items:center; gap:10px; width:100%; min-height:52px; margin-top:12px; padding:0 18px; border-radius:16px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font:700 1rem var(--font-body)}
.sheet-theme .i-sun,.sheet-theme .i-moon{width:22px; height:22px}
.is-dark .sheet-theme .i-moon,.sheet-theme .i-sun{display:none}
.is-dark .sheet-theme .i-sun{display:inline-block; opacity:1; transform:none}
.sheet-theme .t-light{display:none}
.is-dark .sheet-theme .t-light{display:inline} .is-dark .sheet-theme .t-dark{display:none}
.sheet-actions{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px}
.sheet-meta{text-align:center; color:var(--muted); font-size:.9rem; margin:14px 0 0}
.tool-groups{grid-template-columns:1fr}
.bl-col{padding:22px 20px}
.related li{padding:20px}
.loc-grid{grid-template-columns:1fr}
.page-posts{width:calc(100% - 36px)}
.mega-btn,.mega{display:none!important}
.footer-big{white-space:normal}
/* footer: each group full width, links in two columns */
.footer-grid{gap:0}
.footer-grid>div{padding:26px 0}
.footer-grid>div+div{border-top:1px solid color-mix(in srgb,var(--band-ink) 12%,transparent)}
.footer-grid>div:first-child{padding-top:0}
.footer-grid ul{grid-template-columns:1fr 1fr; gap:14px 18px}
.footer-grid li.f-wide{grid-column:1/-1}
.footer-grid h2{margin-bottom:16px}
.blog-index-illo .illo-lg{display:none} .blog-index-illo .illo-sm{display:block; max-width:420px; margin-inline:auto}
.blog-layout{grid-template-columns:1fr} .blog-index .post-list,.blog-side .blog-lists{grid-template-columns:1fr} .post-card-img{margin:-22px -20px 16px}
.post article>.post-art,.post article:has(>.post-art) .toc,.post article:has(>.post-art) .prose{grid-row:auto}
.post-side{display:contents} .post article>header{order:0} .post article>.post-hero{order:1} .post-side .toc{order:2} .post .prose{order:3} .post-side .blog-lists{order:4; margin-top:8px!important} .post-side .side-sticky{order:5; position:static} .blog-side .side-sticky{position:static}
.cs-in{padding:9px 18px}
/* phone reading, app-style (Pramod 24 Nov 2026): bigger, roomier text in articles */
.post .prose{font-size:1.15rem; line-height:1.72} .post .prose li{margin-bottom:.4em} .post .lead,.blog-index .lead{font-size:1.15rem; line-height:1.6}
.post .prose h2{font-size:1.7rem; line-height:1.15; margin-top:1.6em} .post .prose h3{font-size:1.3rem}
.blog-side{position:static}
/* phone: diagrams show whole (edge to edge, nothing cut off) + "Tap to enlarge" opens a full-screen viewer (Pramod 24 Nov 2026) */
.post-illo{margin-inline:-18px; padding:14px 10px 0; background:var(--surface); border-block:1px solid var(--line)}
.post-illo .illo{display:block; width:100%; height:auto}
.post-illo figcaption{padding:0 8px 12px}
.illo-zoom-btn{display:flex; align-items:center; justify-content:center; gap:8px; width:calc(100% - 16px); margin:10px 8px 12px; padding:12px; border-radius:12px; border:1px solid var(--line-strong); background:var(--bg); color:var(--ink); font:700 .95rem/1 var(--font-body)}
.post-side .toc,.side-sticky{position:static; max-height:none; box-shadow:none}
.benefit-list{grid-template-columns:1fr}
