/* One footer for every page: brand, pages, contact and visible social buttons */
html body footer.sitefoot{background:#041A17;color:#A8C1B8;font-family:"Manrope",system-ui,sans-serif;font-size:14px;line-height:1.6;padding:64px 0 120px;border-top:1px solid rgba(255,255,255,.06)}
footer.sitefoot .fwrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,5vw,72px);display:grid;grid-template-columns:1fr 1fr;gap:36px;max-width:900px;border:0}
footer.sitefoot a{color:#ECF2EC;text-decoration:none}
footer.sitefoot a:hover{color:#D5F195}
footer.sitefoot .fb b{display:block;font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:20px;color:#ECF2EC;letter-spacing:.01em}
footer.sitefoot .fb p{margin-top:8px;max-width:30ch}
footer.sitefoot .fb em{font-family:"Fraunces",Georgia,serif;color:#D5F195}
footer.sitefoot h4{font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#6F8C83;margin-bottom:12px}
footer.sitefoot ul{list-style:none;display:grid;gap:6px}
footer.sitefoot .soc{display:flex;gap:10px;flex-wrap:wrap}
html body footer.sitefoot .soc a{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#0F3A33;color:#D5F195;border:1.5px solid rgba(213,241,149,.5);transition:background-color .3s,border-color .3s,color .3s,transform .3s}
html body footer.sitefoot .soc a:hover{background:#D5F195;border-color:#D5F195;color:#0B2A22;transform:translateY(-2px)}
footer.sitefoot .soc svg{width:20px;height:20px}
footer.sitefoot .handle{margin-top:12px;font-size:13px}
footer.sitefoot .bot{max-width:1240px;margin:40px auto 0;padding:22px clamp(20px,5vw,72px) 0;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#6F8C83}
@media (max-width:900px){footer.sitefoot .fwrap{grid-template-columns:1fr 1fr}footer.sitefoot .fb{grid-column:1/-1}}

/* the brand line under Sai's name: his full title, kept small so it never crowds the menu */
html body .nav .brand span{letter-spacing:.08em;font-size:9.5px;line-height:1.45;max-width:300px;white-space:normal}
@media (max-width:600px){html body .nav .brand span{font-size:8.5px;max-width:210px;letter-spacing:.06em}}
/* seven menu links plus the full title: tighten on mid widths, switch to the Menu button below 1100px */
html body .nav ul a,html body .nav > .btn{white-space:nowrap}
html body .nav ul{margin:0 24px}
@media (max-width:1320px){html body .nav ul{gap:16px;font-size:13.5px}html body .nav .brand span{max-width:240px}}
@media (max-width:1100px){html body .nav ul{display:none!important}html body .nav .menu-btn{display:block!important}}
@media (min-width:601px) and (max-width:1100px){html body .nav > .btn{margin-left:auto;margin-right:12px}}

/* footer is now just Contact and Follow Sai */
@media (max-width:600px){footer.sitefoot .fwrap{grid-template-columns:1fr}}

/* headings: steadier letterforms, no letters touching, one clean line where it fits */
html body h1,html body h2,html body h3{letter-spacing:-.005em!important;line-height:1.15!important;font-variation-settings:"opsz" 48!important}
html body h1 em,html body h2 em,html body h3 em{letter-spacing:0!important}
/* one spacing rhythm for every page: shorter section gaps, heroes sized to their content */
html body .pad{padding-top:clamp(52px,6vw,88px);padding-bottom:clamp(52px,6vw,88px)}
html body .phero{padding:124px 0 60px}
html body .hero,html body .xhero{min-height:min(100svh,720px)}
html body .cr{padding-top:clamp(40px,4.5vw,64px);padding-bottom:clamp(40px,4.5vw,64px)}
html body .tiles,html body .egrid,html body .shelf,html body .kgrid,html body .fgrid,html body .courses,html body .posts{margin-top:clamp(28px,3vw,40px)}
html body footer.sitefoot{padding:48px 0 44px}
@media (max-width:860px){html body footer.sitefoot{padding-bottom:110px}html body .phero{padding:104px 0 44px}}
/* content shows straight away: no fade-in that leaves sections looking empty while scrolling */
html body .rv{opacity:1!important;transform:none!important;transition:none!important}
/* header: name on line 1, designation on line 2, page links on line 3 (laptop and wider) */
@media (min-width:1101px){
  html body .nav{flex-wrap:wrap;row-gap:6px;padding-top:12px;padding-bottom:10px}
  html body .nav .brand span{max-width:none;white-space:nowrap;font-size:10px;letter-spacing:.1em}
  html body .nav ul{order:3;flex:0 0 100%;margin:0;gap:26px;font-size:14px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
}
/* everything below the taller three-line header moves down to match (laptop and wider) */
@media (min-width:1101px){
  html{scroll-padding-top:130px}
  html body .phero{padding-top:156px}
  html body .hero-copy{padding-top:140px}
  html body header.hero{padding-top:150px}
  html body .tabs,html body .switch,html body .tools{top:108px}
  html body .ihead,html body .ahead{padding-top:176px}
  html body .wall{top:130px}
  html body .txt{top:140px}
  html body .sside{top:130px}
  html body .yearbox{top:170px}
  html body .xray .pin{padding-top:176px}
}
@media (min-width:1101px){html body .xhero .hero-copy{padding-top:168px}}
/* phones and tablets: a clear, tappable Menu button and a solid header */
@media (max-width:1100px){
  html body .nav{background:rgba(6,35,31,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(255,255,255,.08)}
  html body .nav .menu-btn{display:flex!important;align-items:center;gap:9px;font:700 15px/1 "Manrope",system-ui,sans-serif;padding:12px 18px 12px 15px;border-radius:999px;background:#D5F195;color:#0B2A22!important;border:0;box-shadow:0 6px 18px -6px rgba(213,241,149,.55)}
  html body .nav .menu-btn::before{content:"";width:18px;height:13px;flex:none;background:linear-gradient(currentColor 0 0) top/100% 2px no-repeat,linear-gradient(currentColor 0 0) center/100% 2px no-repeat,linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat}
  html body .mclose,html body .sheet .close{display:flex!important;align-items:center;font:700 15px/1 "Manrope",system-ui,sans-serif;padding:12px 18px;border-radius:999px;background:#D5F195;color:#0B2A22!important;border:0}
  html body .nav .brand span{font-size:9.5px}
}
