/* lexiconn.in 2026 design system for inside pages. Rules: docs/positioning-and-redesign-2026-10.md */
@font-face{font-family:'Geist';font-weight:100 900;font-display:swap;src:url(../fonts/geist.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-weight:200 900;font-display:swap;src:url(../fonts/sourceserif4.woff2) format('woff2')}
:root{--ember:#AD3642;--ink:#1d1d1f;--slate:#5e5e63;--mist:#d2d2d7;--haze:#f5f5f7;--paper:#fff;--sun:#FFDE59;--ok:#1f7a4d}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font:400 18px/1.65 Geist,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding-inline:24px}
.narrow{max-width:760px;margin:0 auto;padding-inline:24px}
h1,h2,h3,.h{font-family:Geist,sans-serif;font-weight:600;letter-spacing:-.02em;line-height:1.08}
h1{font-size:clamp(40px,6vw,80px)}
h2{font-size:clamp(30px,4.2vw,52px)}
h3{font-size:24px;line-height:1.2;letter-spacing:-.012em}
.lede{font-size:clamp(19px,1.6vw,22px);color:var(--slate);line-height:1.55;max-width:38em}
.center{text-align:center}.center .lede{margin-inline:auto}
section{padding-block:clamp(72px,10vw,130px)}
.tint{background:var(--haze)}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;text-decoration:none;font-weight:600;font-size:17px;padding:14px 24px;border-radius:999px;transition:background .25s,transform .25s}
.btn:hover{background:var(--ember);transform:translateY(-2px)}
.link{font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--ember)}
.acts{display:flex;gap:26px;align-items:center;flex-wrap:wrap;margin-top:32px}
.center .acts{justify-content:center}

/* masthead */
.mast{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.9);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid #eee}
.mast .wrap{display:flex;align-items:center;justify-content:space-between;height:80px}
.mast img{height:64px;width:auto}@media (max-width:900px){.mast img{height:56px}}
.mast nav{display:flex;gap:28px;font-size:15px}
.mast nav a{text-decoration:none}.mast nav a:hover{color:var(--ember)}
.mast .btn{padding:8px 17px;font-size:15px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}.mast .btn:hover{background:var(--ink);color:#fff}
.crumbs{font-size:14px;color:var(--slate);padding-top:28px}
.crumbs a{text-decoration:none}.crumbs a:hover{text-decoration:underline}

/* hero */
.hero{padding-block:56px 64px;text-align:center}
.hero h1 em{font-style:normal;color:var(--ember)}
.hero .lede{margin:22px auto 0}
.logos{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:34px;align-items:center;justify-items:center;margin-top:64px}
.logos img{max-height:34px;width:auto;filter:grayscale(1);opacity:.6;transition:filter .3s,opacity .3s}
.logos img:hover{filter:none;opacity:1}
.logos-label{font-size:14px;color:var(--slate);margin-top:56px}
.logos-label + .logos{margin-top:18px}

/* picture tiles */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:56px}
.tile{text-decoration:none;display:block}
.tile .pic{aspect-ratio:16/10;border-radius:22px;overflow:hidden;background:var(--haze)}
.tile .pic img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.16,1,.3,1)}
.tile:hover .pic img{transform:scale(1.03)}
.tile h3{margin-top:22px}
.tile p{font-size:17px;color:var(--slate);margin-top:6px}
.tile .more{display:inline-block;margin-top:10px;font-weight:600;font-size:16px;color:var(--ember)}

/* quote from a regulator */
.rule{max-width:900px;margin:0 auto;text-align:center}
.rule blockquote{font-family:Geist,Geist,sans-serif;font-weight:500;font-size:clamp(26px,3.2vw,40px);line-height:1.25;letter-spacing:-.015em}
.rule blockquote mark{background:linear-gradient(transparent 62%,#FFE7A3 62%);color:inherit}
.rule cite{display:block;font-style:normal;font-size:16px;color:var(--slate);margin-top:22px}

/* steps */
.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:52px;counter-reset:s}
.steps li{background:#fff;border-radius:18px;padding:26px 24px;counter-increment:s}
.steps li::before{content:counter(s);display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ember);color:#fff;font:700 16px Geist,Geist;margin-bottom:16px}
.steps b{display:block;font-family:Geist,Geist;font-size:20px;letter-spacing:-.01em;margin-bottom:6px}
.steps span{font-size:16px;color:var(--slate);line-height:1.5}
details.deep{max-width:760px;margin:40px auto 0}
details.deep summary{cursor:pointer;font-weight:600;color:var(--ember);list-style:none;text-align:center}
details.deep summary::-webkit-details-marker{display:none}
details.deep[open] summary{margin-bottom:24px}
.prose{font-family:'Source Serif 4',Georgia,serif;font-size:19px;line-height:1.7}
.prose h3{font-family:Geist,Geist;font-size:22px;margin:28px 0 8px}
.prose p+p{margin-top:14px}

/* work cards */
.work{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:52px}
.card{background:var(--haze);border-radius:20px;padding:12px 12px 22px;text-decoration:none;display:flex;flex-direction:column;gap:14px;transition:transform .3s}
.card:hover{transform:translateY(-4px)}
.card .pic{aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#fff}
.card .pic img{width:100%;height:100%;object-fit:cover}
.card .who{padding:0 8px;font-weight:700;font-size:17px;line-height:1.3}
.card .who small{display:block;font-weight:400;font-size:14px;color:var(--slate)}
.card .num{padding:0 8px;margin-top:auto;font:700 34px/1 Geist,Geist;letter-spacing:-.02em}
.card .num small{display:block;font:400 15px/1.4 Geist;margin-top:6px;letter-spacing:0;color:var(--slate)}

/* video */
.film{max-width:1040px;margin:48px auto 0;border-radius:22px;overflow:hidden;background:#000}
.film video{width:100%;display:block;aspect-ratio:16/9}

/* chips */
.chips{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:40px}
.chips a,.chips span{border:1px solid var(--mist);border-radius:999px;padding:10px 18px;font-size:16px;text-decoration:none;background:#fff;transition:border-color .2s,color .2s}
.chips a:hover{border-color:var(--ember);color:var(--ember)}

/* FAQ */
.faq{max-width:820px;margin:44px auto 0}
.faq details{border-bottom:1px solid var(--mist);padding:22px 0}
.faq summary{cursor:pointer;font-family:Geist,Geist;font-weight:700;font-size:21px;letter-spacing:-.01em;list-style:none;display:flex;justify-content:space-between;gap:20px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;color:var(--ember);font-size:26px;line-height:1}
.faq details[open] summary::after{content:"\2013"}
.faq p{margin-top:12px;color:#333;font-size:17px}

/* reading list */
.reads{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:44px}
.reads a{display:block;padding:22px;border-radius:16px;background:#fff;text-decoration:none;font-weight:600;line-height:1.4;transition:transform .25s}
.reads a:hover{transform:translateY(-3px)}
.reads small{display:block;font-weight:400;color:var(--slate);font-size:14px;margin-bottom:6px}

/* close + footer */
.close h2{font-size:clamp(36px,5vw,68px)}
footer{background:var(--ink);color:#d2d2d7;padding:64px 0 34px;font-size:14px}
footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
footer h4{color:#fff;font-size:15px;margin-bottom:10px}
footer a{display:block;text-decoration:none;color:#d2d2d7;margin:6px 0}
footer a:hover{color:#fff}
footer .legal{border-top:1px solid #333;margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

/* reveal on scroll */
.rv{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.rv{opacity:1;transform:none}*{transition:none!important}}

@media (max-width:900px){
  .mast nav{display:none}
  .logos{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
  .tiles,.steps,.work,.reads{grid-template-columns:1fr}
  .work{grid-template-columns:1fr 1fr}
  footer .cols{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){.work{grid-template-columns:1fr}}

/* red-pen notes (only for edit/mistake scenes) */
@font-face{font-family:'Kalam';font-weight:400;font-display:swap;src:url(../fonts/kalam-400.woff2) format('woff2')}
.mistakes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:52px;text-align:left}
.mk{background:#fff;border-radius:18px;padding:28px 26px 26px;box-shadow:0 14px 34px -24px rgba(0,0,0,.35)}
.mk .draft{font-family:'Source Serif 4',Georgia,serif;font-size:22px;line-height:1.45}
.mk .draft u{text-decoration:underline wavy #C0272D;text-decoration-thickness:2px;text-underline-offset:6px}
.mk .pen{font-family:Kalam,cursive;color:#C0272D;font-size:21px;line-height:1.3;margin-top:18px;transform:rotate(-1.5deg)}
.mk .what{display:block;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--slate);margin-bottom:12px}
.after{max-width:780px;margin:40px auto 0;font-size:18px;color:#333}
/* dark statement band */
.band{background:var(--ink);color:#f5f5f7}
.band blockquote{font-family:Geist,Geist,sans-serif;font-weight:700;font-size:clamp(30px,4.4vw,58px);line-height:1.1;letter-spacing:-.022em;max-width:1000px;margin:0 auto}
.band blockquote span{color:#ff8a8f}
.band p{max-width:720px;margin:28px auto 0;font-size:19px;color:#c7c7cc}
.band a{color:#fff}
/* people */
.people{display:grid;grid-template-columns:1.2fr 1fr;gap:56px;align-items:center;text-align:left}
.people p{font-size:19px;color:#333}.people p+p{margin-top:16px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stats div{background:var(--haze);border-radius:18px;padding:24px}
.stats b{display:block;font:700 44px/1 Geist,Geist;letter-spacing:-.02em}
.stats span{display:block;font-size:15px;color:var(--slate);margin-top:8px;line-height:1.4}
/* departments */
.depts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px;text-align:left}
.depts div{background:#fff;border:1px solid #ececf0;border-radius:16px;padding:20px 22px}
.depts b{display:block;font-family:Geist,Geist;font-size:19px;margin-bottom:4px}
.depts span{font-size:15px;color:var(--slate);line-height:1.5}
@media (max-width:900px){.mistakes,.people,.depts{grid-template-columns:1fr}}
.dl{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.dl input{flex:1;min-width:220px;border:1px solid var(--mist);border-radius:999px;padding:13px 18px;font:400 16px Geist,sans-serif}
.dl-done{margin-top:24px;font-size:18px}
.people h2{margin-bottom:24px}
/* new tools */
.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:52px;text-align:left}
.tool h3{margin-top:22px;font-size:23px}
.tool p{font-size:16px;color:var(--slate);margin-top:8px;line-height:1.55}
.tool .proof{display:inline-block;margin-top:14px;font-size:13px;font-weight:600;color:var(--ember)}
.mock{aspect-ratio:16/11;border-radius:20px;background:var(--haze);padding:22px;display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:13px}
.m-research .row{background:#fff;border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px;box-shadow:0 6px 16px -12px rgba(0,0,0,.3)}
.m-research .row .b{font-weight:700;color:var(--ember);white-space:nowrap}
.m-research .row i{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;border:1px solid var(--mist);border-radius:999px;padding:2px 8px;white-space:nowrap}
.m-research .row.dim{background:var(--ink);color:#fff}.m-research .row.dim .b{color:var(--sun)}
.m-guard .ad{position:relative;background:linear-gradient(135deg,#2b2d6e,#7a2b6b);color:#fff;border-radius:12px;padding:22px 18px;height:56%}
.m-guard .ad b{display:block;font:700 20px/1.15 Geist,Geist}
.m-guard .ad span{display:block;margin-top:8px;font-size:14px;opacity:.9}
.m-guard .pin{position:absolute;width:24px;height:24px;border-radius:50%;background:#C0272D;color:#fff;font:700 12px/24px Geist;text-align:center;font-style:normal;box-shadow:0 0 0 4px rgba(192,39,45,.25)}
.m-guard .p1{right:22%;bottom:16%}.m-guard .p2{right:8%;top:12%}
.m-guard ol{list-style:none;display:grid;gap:6px;counter-reset:g}
.m-guard li{background:#fff;border-radius:8px;padding:7px 10px;counter-increment:g}
.m-guard li::before{content:counter(g);display:inline-block;width:18px;height:18px;border-radius:50%;background:#C0272D;color:#fff;font:700 11px/18px Geist;text-align:center;margin-right:8px}
.m-guard li b{margin-right:6px}
.m-flow{flex-direction:column;align-items:stretch;gap:8px}
.m-flow span{background:#fff;border-radius:10px;padding:10px 14px;font-weight:600;position:relative;box-shadow:0 6px 16px -12px rgba(0,0,0,.3)}
.m-flow span::after{content:"\2713";position:absolute;right:14px;color:var(--ok)}
.m-flow span.ok{background:var(--ok);color:#fff}.m-flow span.ok::after{color:#fff}
@media (max-width:900px){.tools{grid-template-columns:1fr}}
.logos.n9{grid-template-columns:repeat(9,minmax(0,1fr));gap:28px}
@media (max-width:900px){.logos.n9{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* standard reading cards */
.rcard{display:flex;flex-direction:column;background:var(--haze);border-radius:18px;overflow:hidden;text-decoration:none;transition:transform .25s}
.rcard:hover{transform:translateY(-4px)}
.rcard .pic{aspect-ratio:16/10;overflow:hidden}.rcard .pic img{width:100%;height:100%;object-fit:cover}
.rcard .meta{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 0;font-size:13px;color:var(--slate)}
.rcard .tag{font-weight:700;color:var(--ember);text-transform:uppercase;letter-spacing:.06em;font-size:12px}
.rcard b{display:block;padding:8px 20px 22px;font-size:17px;line-height:1.4}
.reads{gap:22px}
.logos.n7{grid-template-columns:repeat(7,minmax(0,1fr));max-width:1000px;margin-left:auto;margin-right:auto}
@media (max-width:900px){.logos.n7{grid-template-columns:repeat(4,minmax(0,1fr))}}
.phone{max-width:300px;margin:0 auto;border-radius:36px;overflow:hidden;border:10px solid var(--ink);background:#000;box-shadow:0 30px 60px -30px rgba(0,0,0,.5)}
.phone video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover}
/* team picker */
.tp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:34px;margin-top:48px;text-align:left;align-items:start}
.tp-tabs{display:flex;flex-direction:column;gap:6px}
.tp-tab{all:unset;cursor:pointer;padding:12px 18px;border-radius:12px;font:500 17px/1.3 Geist,sans-serif;color:var(--slate);transition:background .2s,color .2s}
.tp-tab:hover{background:#fff;color:var(--ink)}
.tp-tab[aria-selected="true"]{background:var(--ink);color:#fff}
.tp-tab:focus-visible{outline:2px solid var(--ember);outline-offset:2px}
.tp-line{font-size:19px;color:#333;margin-bottom:22px}
.tp-line b{color:var(--ink)}
.tp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tp-card{position:relative;display:block;background:var(--haze);border-radius:16px;padding:20px 44px 20px 22px;text-decoration:none;transition:transform .25s,box-shadow .25s}
.tp-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px -16px rgba(0,0,0,.25)}
.tp-card b{display:block;font-family:Geist,sans-serif;font-size:18px;font-weight:600;margin-bottom:4px}
.tp-card span{display:block;font-size:15px;color:var(--slate);line-height:1.5}
.tp-card i{position:absolute;right:20px;top:20px;font-style:normal;color:var(--ember);font-size:18px}
.tp:not(.js) .tp-panel{margin-bottom:34px}
@media (max-width:900px){.tp{grid-template-columns:minmax(0,1fr)}.tp-tabs{flex-direction:row;flex-wrap:wrap}.tp-tab{padding:9px 14px;font-size:15px;border:1px solid var(--mist)}.tp-cards{grid-template-columns:minmax(0,1fr)}}
.tp-tab:hover{background:var(--haze)}
/* numbered ideas list */
.ideas{list-style:none;counter-reset:i;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 34px;margin-top:28px;text-align:left}
.ideas li{counter-increment:i;position:relative;padding-left:44px}
.ideas li::before{content:counter(i,decimal-leading-zero);position:absolute;left:0;top:1px;font:600 15px/1.6 Geist,sans-serif;color:var(--ember)}
.ideas b{display:block;font-size:18px;font-weight:600;margin-bottom:2px}
.ideas span{font-size:15px;color:var(--slate);line-height:1.5}
@media (max-width:900px){.ideas{grid-template-columns:minmax(0,1fr)}}
.tint .tp-card{background:#fff}
.tint .tp-tab:hover{background:#fff}
.ideas span{display:block}

/* ===== 28 Oct 2026 shared changes S2-S16 (docs/positioning-and-redesign-2026-10.md section 4). Additions only:
   every class above keeps working, and page-level overrides (ids, inline styles) still win. ===== */

/* S2. Grids that adapt to the number of items. Desktop column count follows the item count; a short last row is
   centred (doubled tracks). Explicit fixed-count classes still work: .logos.n7/.n9 above, plus .n4 to .n10, .work.two/.three,
   .tools.two, .ideas.one/.two. Rows with an inline style or an id are left to the page. */
@media (min-width:901px){
.logos:not([style]):not([id]):has(> *:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));max-width:150px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr));max-width:450px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));max-width:600px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr));max-width:750px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr));max-width:900px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(7):last-child){grid-template-columns:repeat(7,minmax(0,1fr));max-width:1050px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(8):last-child){grid-template-columns:repeat(8,minmax(0,1fr));max-width:1200px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(9):last-child){grid-template-columns:repeat(9,minmax(0,1fr));max-width:1350px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(10):last-child){grid-template-columns:repeat(10,minmax(0,1fr));max-width:1500px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child){grid-template-columns:repeat(12,minmax(0,1fr));max-width:1500px;margin-left:auto;margin-right:auto}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child) > *{grid-column:span 2}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child) > :nth-child(7){grid-column:2 / span 2}
.logos:not([style]):not([id]):has(> *:nth-child(12):last-child){grid-template-columns:repeat(6,minmax(0,1fr));max-width:1500px;margin-left:auto;margin-right:auto}
.work:has(> *:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:920px;margin-left:auto;margin-right:auto}
.work:has(> *:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.work:has(> *:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.work:has(> *:nth-child(5):last-child) > *{grid-column:span 2}
.work:has(> *:nth-child(5):last-child) > :nth-child(4){grid-column:2 / span 2}
.work:has(> *:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.work:has(> *:nth-child(7):last-child){grid-template-columns:repeat(8,minmax(0,1fr));}
.work:has(> *:nth-child(7):last-child) > *{grid-column:span 2}
.work:has(> *:nth-child(7):last-child) > :nth-child(5){grid-column:2 / span 2}
.work.two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:920px;margin-left:auto;margin-right:auto}
.work.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.tools:not([style]):has(> *:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));max-width:460px;margin-left:auto;margin-right:auto}
.tools:not([style]):has(> *:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:880px;margin-left:auto;margin-right:auto}
.tools:not([style]):has(> *:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:880px;margin-left:auto;margin-right:auto}
.tools:not([style]):has(> *:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.tools:not([style]):has(> *:nth-child(5):last-child) > *{grid-column:span 2}
.tools:not([style]):has(> *:nth-child(5):last-child) > :nth-child(4){grid-column:2 / span 2}
.tools:not([style]):has(> *:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.tools.two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:880px;margin-left:auto;margin-right:auto}
.steps:has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.steps:has(> li:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.steps:has(> li:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.steps:has(> li:nth-child(5):last-child) > *{grid-column:span 2}
.steps:has(> li:nth-child(5):last-child) > :nth-child(4){grid-column:2 / span 2}
.steps:has(> li:nth-child(7):last-child){grid-template-columns:repeat(8,minmax(0,1fr));}
.steps:has(> li:nth-child(7):last-child) > *{grid-column:span 2}
.steps:has(> li:nth-child(7):last-child) > :nth-child(5){grid-column:2 / span 2}
.steps:has(> li:nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.reads:has(> *:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));max-width:400px;margin-left:auto;margin-right:auto}
.reads:has(> *:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px;margin-left:auto;margin-right:auto}
.reads:has(> *:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.reads:has(> *:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.reads:has(> *:nth-child(5):last-child) > *{grid-column:span 2}
.reads:has(> *:nth-child(5):last-child) > :nth-child(4){grid-column:2 / span 2}
.reads:has(> *:nth-child(7):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.reads:has(> *:nth-child(7):last-child) > *{grid-column:span 2}
.reads:has(> *:nth-child(7):last-child) > :nth-child(7){grid-column:3 / span 2}
.reads:has(> *:nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.ideas:not(.one):not(.two):not(.people .ideas):has(> li:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));}
.ideas:not(.one):not(.two):not(.people .ideas):has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.ideas:not(.one):not(.two):not(.people .ideas):has(> li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.ideas.two{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1101px){
.reads:has(> *:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:900px){
.logos:not([style]):not([id]):has(> *:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(5):last-child) > *{grid-column:span 2}
.logos:not([style]):not([id]):has(> *:nth-child(5):last-child) > :nth-child(4){grid-column:2 / span 2}
.logos:not([style]):not([id]):has(> *:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(7):last-child){grid-template-columns:repeat(8,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(7):last-child) > *{grid-column:span 2}
.logos:not([style]):not([id]):has(> *:nth-child(7):last-child) > :nth-child(5){grid-column:2 / span 2}
.logos:not([style]):not([id]):has(> *:nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(9):last-child){grid-template-columns:repeat(3,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(10):last-child){grid-template-columns:repeat(8,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(10):last-child) > *{grid-column:span 2}
.logos:not([style]):not([id]):has(> *:nth-child(10):last-child) > :nth-child(9){grid-column:3 / span 2}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child){grid-template-columns:repeat(8,minmax(0,1fr));}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child) > *{grid-column:span 2}
.logos:not([style]):not([id]):has(> *:nth-child(11):last-child) > :nth-child(9){grid-column:2 / span 2}
.logos:not([style]):not([id]):has(> *:nth-child(12):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width:561px) and (max-width:900px){
.work:has(> *:nth-child(1):last-child){grid-template-columns:repeat(1,minmax(0,1fr));}
.work:has(> *:nth-child(3):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.work:has(> *:nth-child(3):last-child) > *{grid-column:span 2}
.work:has(> *:nth-child(3):last-child) > :nth-child(3){grid-column:2 / span 2}
.work:has(> *:nth-child(5):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.work:has(> *:nth-child(5):last-child) > *{grid-column:span 2}
.work:has(> *:nth-child(5):last-child) > :nth-child(5){grid-column:2 / span 2}
.work:has(> *:nth-child(7):last-child){grid-template-columns:repeat(4,minmax(0,1fr));}
.work:has(> *:nth-child(7):last-child) > *{grid-column:span 2}
.work:has(> *:nth-child(7):last-child) > :nth-child(7){grid-column:2 / span 2}
}
.logos.n4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:720px;margin-left:auto;margin-right:auto}
.logos.n5{grid-template-columns:repeat(5,minmax(0,1fr));max-width:820px;margin-left:auto;margin-right:auto}
.logos.n6{grid-template-columns:repeat(6,minmax(0,1fr));max-width:920px;margin-left:auto;margin-right:auto}
.logos.n8{grid-template-columns:repeat(8,minmax(0,1fr))}
.logos.n10{grid-template-columns:repeat(10,minmax(0,1fr));gap:24px}
@media (max-width:900px){.logos.n4,.logos.n8{grid-template-columns:repeat(4,minmax(0,1fr))}.logos.n5,.logos.n6{grid-template-columns:repeat(3,minmax(0,1fr))}.logos.n10{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ideas.one,.people .ideas{grid-template-columns:minmax(0,1fr)}
/* S6. logos that are nearly square or drawn in thin lines read smaller than wordmarks at the same height */
.logos img[src$="logo-zee5.webp"],.logos img[src$="logo-bharat-petroleum.webp"]{max-height:46px;opacity:.75}
.logos img[src$="logo-hygienic-research-institute.webp"],.logos img[src$="logo-k-j-somaiya-institute-of-management.webp"]{max-height:42px;opacity:.75}

/* S4. .stats safe on phones: equal columns that may shrink, figures that scale and wrap */
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.stats > div{min-width:0}
.stats b{font-size:clamp(28px,7.5vw,44px);overflow-wrap:anywhere}
.stats > div:last-child:nth-child(odd){grid-column:1 / -1}

/* S5. Excerpt: a real page or frame shown large, caption below or notes beside. Helper: lx_page.excerpt() */
.excerpt{max-width:1040px;margin:48px auto 0;text-align:left}
.excerpt .ex-pic{border-radius:20px;overflow:hidden;background:var(--haze);box-shadow:0 24px 60px -36px rgba(0,0,0,.45)}
.excerpt .ex-pic a,.excerpt .ex-pic img{display:block;width:100%;height:auto}
.excerpt.doc .ex-pic{background:#fff;border:1px solid #ececf0;padding:clamp(10px,2vw,24px)}
.excerpt.doc .ex-pic img{object-fit:contain}
.excerpt figcaption{margin-top:16px;font-size:15px;color:var(--slate);line-height:1.5}
.excerpt.side{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:44px;align-items:center;max-width:1180px}
.excerpt.side figcaption{margin-top:0;font-size:17px;color:#333}
.ex-cap b{color:var(--ink)}
.ex-notes{list-style:none;counter-reset:x;display:grid;gap:16px;margin-top:16px}
.ex-cap + .ex-notes{margin-top:20px}
.ex-notes li{counter-increment:x;position:relative;padding-left:42px}
.ex-notes li::before{content:counter(x);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--ember);color:#fff;font:700 14px/28px Geist,sans-serif;text-align:center}
.ex-notes b{display:block;font-weight:600;font-size:17px;color:var(--ink);line-height:1.35}
.ex-notes span{display:block;font-size:15px;color:var(--slate);line-height:1.5;margin-top:2px}
.ex-tablewrap{overflow-x:auto;margin-top:16px}
.ex-table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.45;background:#fff;border-radius:12px;overflow:hidden}
.ex-table th{text-align:left;font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--slate);background:var(--haze);padding:10px 14px}
.ex-table td{padding:10px 14px;border-top:1px solid #ececf0;vertical-align:top}
.tint .ex-table th{background:#ececf0}
@media (max-width:900px){.excerpt.side{grid-template-columns:minmax(0,1fr);gap:22px}}

/* S11. Testimonial (helper lx_page.testimonial) and a neutral name for the scored-list mock */
.say{max-width:760px;margin:40px auto 0;text-align:left;border-left:3px solid var(--ember);padding-left:24px}
.say p{font-family:'Source Serif 4',Georgia,serif;font-size:clamp(20px,2vw,24px);line-height:1.5;color:var(--ink)}
.say cite{display:block;font-style:normal;font-size:15px;color:var(--slate);margin-top:12px}
.say cite b{color:var(--ink);font-weight:600}
.people .say{margin:28px 0 0}
.m-score .row{background:#fff;border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px;box-shadow:0 6px 16px -12px rgba(0,0,0,.3)}
.m-score .row .b{font-weight:700;color:var(--ember);white-space:nowrap}
.m-score .row i{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;border:1px solid var(--mist);border-radius:999px;padding:2px 8px;white-space:nowrap}
.m-score .row.dim{background:var(--ink);color:#fff}.m-score .row.dim .b{color:var(--sun)}

/* S12. YouTube that loads on click (helper lx_page.youtube) and plain iframes inside .film */
.film iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.film.yt .yt-play{position:relative;display:block;aspect-ratio:16/9;background:#000}
.film.yt .yt-play img{width:100%;height:100%;object-fit:cover;opacity:.9;transition:opacity .25s}
.yt-btn{position:absolute;left:50%;top:50%;width:78px;height:78px;margin:-39px 0 0 -39px;border-radius:50%;background:var(--ember);box-shadow:0 10px 30px -10px rgba(0,0,0,.6);transition:transform .25s}
.yt-btn::after{content:"";position:absolute;left:31px;top:25px;border-style:solid;border-width:14px 0 14px 22px;border-color:transparent transparent transparent #fff}
.yt-play:hover img{opacity:1}.yt-play:hover .yt-btn{transform:scale(1.06)}
.yt-play:focus-visible{outline:3px solid var(--ember);outline-offset:3px}

/* S13. 'Made with AI' chip (helper lx_page.ai_chip; KD-20: mixed work gets no tag) */
.ai-chip{display:inline-flex;align-items:center;gap:6px;font:600 11px/1 Geist,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ember);background:#fff;border:1px solid #efd3d6;border-radius:999px;padding:6px 10px;white-space:nowrap}
.ai-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ember)}
.card .pic,.tile .pic{position:relative}
.pic > .ai-chip{position:absolute;top:10px;left:10px;z-index:1;box-shadow:0 4px 12px -6px rgba(0,0,0,.3)}
.who .ai-chip{margin-top:8px}

/* S15. Forced line breaks in headings: hidden on phones (lx_page.shell keeps a space before each <br>) */
@media (max-width:600px){h2 br{display:none}}

/* S16. Documents, slides and covers in cards and tiles: show the whole page on white */
.card .pic.doc,.tile .pic.doc{background:#fff}
.card .pic.doc img,.tile .pic.doc img{object-fit:contain}
