/* Page CSS for nishandkrishna.com: only what sits inside a visual and the kit lacks.
   Brand: The Thinking Edge (Poppins, white ground, hues by subject: jade = what works, rose = the customer's pain, blue = systems). */
h1, h2, .t-h1, .t-h2 { font-weight: 700; letter-spacing: -0.03em; }
h1 { font-weight: 800; letter-spacing: -0.035em; }
::selection { background: #E4ECFD; color: #1d1d1f; }

.brand-logo { height: 44px; width: auto; display: block; }
.footer .brand-logo { height: 52px; }

/* hero: four channels under the buttons */
.follow { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); padding: 0; }
.follow a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-small); font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.follow a:hover { border-color: var(--ink); transform: translateY(-2px); }
.follow img { width: auto; height: 18px; }
.ic-substack { filter: invert(48%) sepia(93%) saturate(2400%) hue-rotate(352deg) brightness(101%) contrast(101%); }
a.ly-float { color: var(--ink); text-decoration: none; transition: transform .25s; }
a.ly-float:hover { transform: translateY(-2px); }

/* work: the career lane of the blueprint */
.lane { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); position: relative; }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 112px; height: 2px; background: var(--line); }
.stop { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.stop__logo { height: 96px; display: flex; align-items: center; justify-content: flex-start; }
.stop__logo img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.stop__years { position: relative; margin-top: var(--s-5); padding-top: var(--s-5); font-size: var(--t-small); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stop__years::before { content: ""; position: absolute; left: 0; top: -14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); }
.stop--now .stop__years { color: #1D4ED8; }
.stop--now .stop__years::before { background: #2563EB; border-color: #2563EB; box-shadow: 0 0 0 6px #E4ECFD; }
.stop h3 { font-size: var(--t-card); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.stop p { font-size: var(--t-small); color: var(--muted); line-height: 1.55; }

/* awards: the real certificates and trophies */
.award { display: flex; flex-direction: column; gap: var(--s-1); }
.award h3 { font-size: var(--t-card); font-weight: 700; margin-top: var(--s-3); letter-spacing: -0.015em; }
.award p { font-size: var(--t-small); }
.develop, .award__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 192, 139, .14); }
.develop { aspect-ratio: 800 / 570; }
.develop > img, .award__img > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.award:hover img { transform: scale(1.025); }
.award__img { aspect-ratio: 4 / 3; }
.awards__rest { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.awards__rest .award h3 { font-size: var(--t-body); margin-top: var(--s-2); }
.awards__more { margin-top: var(--s-6); font-size: var(--t-small); color: var(--muted); max-width: 80ch; }

/* education */
.edu__photo { border-radius: var(--r-lg); overflow: hidden; height: min(520px, var(--ly-fit, 520px)); }
.edu__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* the thinking edge: four layers */
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.layers li { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); background: var(--p-bg); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .25s, box-shadow .25s; }
.layers li:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, .12); }
.layers h3 { font-size: var(--t-card); font-weight: 700; letter-spacing: -0.015em; }
.layers p { font-size: var(--t-small); color: var(--muted); margin-top: 2px; }
.sq { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.sq svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sq--jade { background: #00C08B; } .sq--rose { background: #FF3D71; } .sq--blue { background: #2563EB; } .sq--ink { background: #1d1d1f; }

/* the blueprint frames */
#framework .mo-pc__visual img, #framework .mo-pc__visuals img { background: #fff; }

/* latest: live from Substack and YouTube */
.posts { row-gap: var(--s-5); }
.post { grid-column: span 4; display: flex; flex-direction: column; background: var(--p-bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 99, 235, .14); }
.post__img { aspect-ratio: 2 / 1; overflow: hidden; background: var(--p-surface); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__img img { transform: scale(1.025); }
.post__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.post__meta { font-size: var(--t-label); color: var(--muted); font-weight: 500; }
.post h3 { font-size: var(--t-card); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.post p { font-size: var(--t-small); color: var(--muted); }
.shorts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.short { position: relative; aspect-ratio: 9 / 14; border-radius: var(--r-lg); overflow: hidden; background: var(--p-ink); color: #fff; text-decoration: none; transition: transform .25s; }
.short:hover { transform: translateY(-2px); }
.short img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.short span { position: absolute; inset: auto 0 0; padding: 40px var(--s-3) var(--s-3); background: linear-gradient(transparent, rgba(29, 29, 31, .88)); font-size: var(--t-label); font-weight: 600; line-height: 1.35; }

@media (max-width: 1023px) {
  .lane { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-7); }
  .lane::before { display: none; }
  .post { grid-column: span 6; }
  .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edu__photo { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-6); }
}
@media (max-width: 639px) {
  .lane { grid-template-columns: 1fr 1fr; }
  .stop__logo { height: 64px; }
  .stop__logo img { max-height: 40px; }
  .awards__rest { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .post { grid-column: 1 / -1; }
  .shorts { grid-template-columns: 1fr 1fr; }
  .shorts a:nth-child(n+5) { display: none; }
  .brand-logo { height: 38px; }
}

/* fixes after the first look */
h1, h2 { hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.rows .rows__name { font-weight: 600; }
.footer__lede { font-weight: 400 !important; font-size: var(--t-small) !important; line-height: 1.6 !important; color: var(--muted); max-width: 46ch; letter-spacing: 0 !important; }
.nav .brand-logo { height: 52px; }
.shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shorts a:nth-child(n+5) { display: none; }
@media (max-width: 1023px) { .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* round 2 */
.awards__pics { display: flex; flex-direction: column; gap: var(--s-4); }
.awards__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.awards__row .award__img { aspect-ratio: 1 / 1; box-shadow: 0 6px 18px rgba(0, 192, 139, .12); }
.awards__row .award__img:hover img { transform: scale(1.03); }
.awards__list .rows__value { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.awards__list > li { padding-block: var(--s-3); }
.post__img img.is-small { object-fit: contain; width: auto; height: 100%; margin: 0 auto; }
.shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.short { aspect-ratio: 9 / 16; }
.short img { transform: scale(1.34); }
.closing .follow { margin-top: var(--s-5); }
@media (max-width: 639px) {
  .nav__actions { display: none; }
  .hero .follow { display: none; }
  .hero__lead { font-size: 16px; }
  .btn--xl { white-space: normal; text-align: left; height: auto; padding-block: var(--s-4); }
  .awards__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .shorts { grid-template-columns: 1fr 1fr; }
}

/* round 3 */
.shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.shorts a:nth-child(n+5) { display: block; }
.layers { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
.layers li { flex-direction: column; gap: var(--s-3); padding: 0; border: 0; background: none; }
.layers li:hover { transform: none; box-shadow: none; }
.layers h3 { font-size: 20px; }
.layers p { font-size: var(--t-body); }
@media (max-width: 1023px) { .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .shorts { grid-template-columns: 1fr 1fr; } .shorts a:nth-child(n+5) { display: none; } .layers { grid-template-columns: 1fr; gap: var(--s-6); } }

/* round 4 */
.btn { min-height: 44px; }
ol.layers { padding: 0 !important; margin: 0 !important; list-style: none; }
ol.layers > li { margin: 0 !important; padding: 0 !important; }
ol.layers > li::marker { content: ""; }
.tte__belief { margin-top: var(--s-5); font-size: var(--t-body); max-width: 46ch; }
.awards__row { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; align-items: end; }
.awards__row .award__img:nth-child(-n+2) { aspect-ratio: 4 / 3; }
.awards__row .award__img:nth-child(n+3) { aspect-ratio: 3 / 4; }
@media (max-width: 639px) {
  .nav .nav__actions { display: none !important; }
  .awards__row { grid-template-columns: 1fr 1fr; }
}

/* round 5 */
.awards__more-pic { border-radius: var(--r-lg); overflow: hidden; }
.awards__more-pic img { width: 100%; height: auto; display: block; }
.layers2 .rows__name { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.layers2 .rows__name small { font-size: var(--t-body); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.hue { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: 2px; }
.hue--jade { background: #00C08B; } .hue--rose { background: #FF3D71; } .hue--blue { background: #2563EB; } .hue--ink { background: #1d1d1f; }
.post { border: 0; background: none; border-radius: 0; overflow: visible; }
.post__img { border-radius: var(--r-lg); }
.post__body { padding: var(--s-4) 0 0; }
.post:hover { box-shadow: none; }
@media (max-width: 639px) {
  .hide-phone { display: none !important; }
  .stop__logo { height: 48px; } .stop__logo img { max-height: 32px; }
  .stop p { display: none; }
  .lane { row-gap: var(--s-5); }
}

/* round 6 */
.layers2 > li { padding-block: 30px !important; }
.layers2 > li:first-child { padding-top: 6px !important; }
@media (max-width: 639px) {
  .nav__toggle { margin-left: auto; }
  .post:nth-child(3) { display: none; }
  .layers2 > li { padding-block: 18px !important; }
}
@media (max-width: 899px) { .nav__bar { display: flex !important; justify-content: space-between; align-items: center; } }
