/* Editorial home layout (inspired by dhruvrathee.com): big headlines with an italic serif accent, stat cards, numbered pillars. Works in light + dark. */
.ed-title,.sec-title{font-size:clamp(2.1rem,5vw,3.5rem)!important;letter-spacing:-.035em!important;text-transform:none!important;font-weight:700!important;line-height:1.06!important}
h1 i.ser,h2 i,.ed-title i{font-family:'Instrument Serif',Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;letter-spacing:-.01em;color:var(--accent)}
h2 i{font-size:1.06em}
.ed-lead{max-width:660px;color:var(--ink2,var(--muted));font-size:1.06rem;line-height:1.7;margin:14px 0 36px}
.sec-sub{max-width:620px}

/* hero headline */
.hero3 h1{text-transform:none!important;font-weight:700!important;letter-spacing:-.04em!important}
.hero3 h1 i.ser{font-size:1.04em;color:var(--accent)}
html[data-theme="light"] .hero3 h1 em,.hero3 h1 em{display:inline-block;background:var(--accent);color:#fff!important;padding:0 .16em .08em;border-radius:.16em;font-style:normal;margin-top:.06em}
html[data-theme="light"] .hero3 h1 i.ser{color:var(--accent)!important}

/* Who am I */
.who .wrap{max-width:1140px}
.who-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:start}
.who-main{position:relative;border-radius:28px;overflow:hidden;aspect-ratio:4/4.5;box-shadow:var(--shadow);margin:0}
.who-main img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block}
.who-main figcaption{position:absolute;left:0;right:0;bottom:0;padding:110px 22px 20px;color:#fff;font-size:.9rem;font-weight:600;line-height:1.5;background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.72) 38%,rgba(0,0,0,0) 100%);text-shadow:0 1px 8px rgba(0,0,0,.7)}
.who-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.who-trio img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:20px;display:block;border:1px solid var(--line)}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px 18px;box-shadow:0 10px 26px -22px rgba(16,24,40,.35)}
.stat b{display:block;font-family:'Sora',sans-serif;font-size:clamp(1.5rem,2.8vw,2.1rem);color:var(--accent);line-height:1;letter-spacing:-.02em}
.stat span{display:block;margin-top:9px;font-size:.78rem;color:var(--muted);font-weight:600;line-height:1.35}
.who-list{margin-top:14px;display:grid;gap:10px}
.who-list>div{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px 18px}
.who-list small{font-family:'Instrument Serif',serif;font-style:italic;color:var(--muted);font-size:1.25rem;line-height:1}
.who-list b{display:block;color:var(--ink)}.who-list p{color:var(--muted);font-size:.9rem;margin-top:3px}
.who .findme{margin:16px 0 0}

/* pillars */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:6px}
.pillar{position:relative;background:var(--card);border:1px solid var(--line);border-radius:26px;padding:26px 26px 30px;transition:transform .3s,box-shadow .3s}
.pillar:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.pillar .num{position:absolute;right:22px;top:14px;font-family:'Instrument Serif',serif;font-style:italic;font-size:2.6rem;line-height:1;color:var(--line)}
.pillar .ico{width:48px;height:48px;border-radius:14px;background:var(--soft);color:var(--accent);display:grid;place-items:center;margin-bottom:44px;font-style:normal}
.pillar .ico .ic{width:22px;height:22px}
.pillar h3{font-size:1.2rem;margin-bottom:8px;text-transform:none}
.pillar p{color:var(--muted);font-size:.95rem;line-height:1.65}

/* three places */
.places{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.place{display:flex;flex-direction:column;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:26px;padding:26px;min-height:230px;transition:transform .3s,box-shadow .3s,border-color .3s}
.place:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#F1A9AC}
.place .tag{align-self:flex-start;font-size:.66rem;letter-spacing:.14em;font-weight:700;color:var(--accent2);background:var(--soft);padding:6px 11px;border-radius:8px}
.place h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:2rem;letter-spacing:-.01em;line-height:1.1;text-transform:none;color:var(--ink)}
.place p{color:var(--muted);font-size:.95rem}
.place .go{margin-top:auto;font-size:.9rem;color:var(--ink);font-weight:600;display:inline-flex;align-items:center;gap:6px}
.place:hover .go{color:var(--accent)}

@media(max-width:900px){
  .who-grid,.pillars,.places{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .who-main{aspect-ratio:4/4}
}

h1 i,h2 i,.ed-title i{display:inline!important;width:auto!important;height:auto!important;background:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0 .04em 0 0!important;white-space:nowrap;animation:none!important;place-items:unset!important;box-shadow:none!important}
.stat{text-align:left}

/* hero: no social-proof row; on phones the portrait sits between the headline and the paragraph */
.hero3 .proof{display:none!important}
@media(max-width:900px){
  html[data-theme] .hgrid{display:flex!important;flex-direction:column;gap:0!important}
  .hgrid .htext{display:contents}
  .hgrid h1{order:1;margin-bottom:22px!important}
  .hgrid .hman{order:2;margin:0 0 26px!important;padding:0;justify-content:center}
  .hgrid .hman img{width:100%!important;max-width:380px!important;aspect-ratio:1/1!important}
  .hgrid .lead{order:3;margin-bottom:22px!important;max-width:none}
  .hgrid .hpills{order:4;margin:0 0 20px!important;width:100%}
  .hgrid .cta{order:5;margin:0!important}
}

/* My work — photo cards just above the footer */
#work{padding:80px 0 70px}
.places{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:34px}
.wcard{background:var(--card);border:1px solid var(--line);border-radius:28px;padding:20px 20px 22px;text-align:center;display:flex;flex-direction:column;gap:8px;transition:transform .3s,box-shadow .3s,border-color .3s}
.wcard:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#F1A9AC}
.wimg2{position:relative;aspect-ratio:1/1;border-radius:20px;background-size:cover;background-position:50% 22%;margin-bottom:12px}
.wimg2 .wb{position:absolute;left:12px;top:12px;width:44px;height:44px;border-radius:12px;background:#fff;padding:6px;box-shadow:0 8px 18px -8px rgba(0,0,0,.4)}
.wcard h3{font-size:1.5rem;letter-spacing:-.02em;text-transform:none;color:var(--ink)}
.wh2{color:var(--muted);font-size:.9rem}.ws2{color:var(--ink2);font-size:.88rem;font-weight:600}
.wcard .wbtn{margin-top:auto;width:100%;justify-content:center;text-transform:uppercase;font-weight:700;letter-spacing:.06em;font-size:.84rem;padding:13px}
@media(max-width:900px){.places{grid-template-columns:1fr}.wimg2{aspect-ratio:4/3.4}}

/* "Other courses" dropdown in the header */
nav .more.act>button{color:var(--ink)!important}
@media(max-width:900px){nav .links .more.oc::before{content:'Other courses'}nav .links .more.oc{margin-top:6px;padding-top:12px}}

/* locked preview inside the course player */
.screen.lk{display:grid;place-items:center;position:relative}
.screen.lk::before{content:'';position:absolute;inset:0;background:rgba(15,18,28,.62);backdrop-filter:blur(3px)}
.lkov{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:#fff;padding:20px}
.lkov .ic{width:34px;height:34px}.lkov b{font-size:1.2rem}.lkov span{opacity:.9;font-size:.92rem;margin-bottom:6px}

/* one radius for every button (pill) */
.btn,.btn-join,.btn-primary,.btn-white,.btn-ghost,.btn-light,.btn-done,.df-btn,.wbtn,.join2,.go,.pbtn-link,.mini{border-radius:99px!important}
html[data-theme] .btn-join{border-radius:99px!important}

/* locked lecture: thumbnail stays visible, lock + Join Now centred on top */
.screen.lk{display:grid!important;place-items:center;position:relative;background-size:cover!important;background-position:center!important}
.screen.lk::before{background:linear-gradient(180deg,rgba(12,16,26,.35),rgba(12,16,26,.72))!important;backdrop-filter:none!important}
.lkov{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:10px;text-align:center;padding:20px}
.lkov,.lkov b,.lkov span,.lkov .ic{color:#fff!important}
.lkov .ic{width:40px;height:40px;padding:9px;border-radius:50%;background:rgba(255,255,255,.18)}
.lkov b{font-size:1.25rem;display:block}.lkov span{font-size:.92rem;opacity:.92;display:block;margin:0 0 6px}
.lkov .btn{color:#fff!important;background:#E5242B!important;border:0!important;padding:13px 30px}

/* ---- dark theme: same hero layout as light (photo in a framed card on the right, never over the text) ---- */
html[data-theme="dark"] .hero3{min-height:0!important;padding:46px 0 70px!important;align-items:center!important}
html[data-theme="dark"] .hgrid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;gap:48px!important;align-items:center!important}
html[data-theme="dark"] .htext{padding-bottom:0!important}
html[data-theme="dark"] .hman{position:relative!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;z-index:1;display:flex!important;justify-content:center!important;align-items:center!important}
html[data-theme="dark"] .hman::before{display:none!important}
html[data-theme="dark"] .hman img{height:auto!important;width:100%!important;max-width:430px!important;aspect-ratio:4/5;object-fit:cover!important;object-position:50% 30%;border-radius:34px;filter:none!important;-webkit-mask-image:none!important;mask-image:none!important;box-shadow:0 34px 70px -30px rgba(0,0,0,.8),0 0 0 8px #1c1c1c,0 0 0 9px #333!important}
html[data-theme="dark"] .hero3 h1{font-size:clamp(2.2rem,5vw,4.1rem)!important;line-height:1.04!important;color:#f5f4ed}
html[data-theme="dark"] .hero3 .lead{color:#c9c7bf!important}
html[data-theme="dark"] .hpills{background:#1b1b1b!important;border:1px solid #2e2e2e!important;color:#f5f4ed!important}
html[data-theme="dark"] .hero3 .btn-white{background:#fff;color:#141821!important}
@media(max-width:900px){html[data-theme="dark"] .hgrid{grid-template-columns:1fr!important}html[data-theme="dark"] .hman img{max-width:380px!important;aspect-ratio:1/1!important}}

/* phones: hero buttons side by side */
@media(max-width:900px){
  html[data-theme] .hero3 .cta,html[data-theme] .hgrid .cta{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:10px!important;align-items:stretch!important}
  html[data-theme] .hero3 .cta .btn{flex:1 1 0!important;width:auto!important;min-width:0;padding:14px 8px!important;font-size:.82rem!important;white-space:nowrap;justify-content:center}
}

/* phone drawer: groups are collapsed (tap to open) so Join Now / Login stay in view */
@media(max-width:900px){
  nav .links .more::before{display:none!important;content:none!important}
  nav .links .more>button{display:flex!important;justify-content:space-between;align-items:center;width:100%;padding:13px 12px!important;border-radius:12px;font-size:.92rem!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.03em;color:var(--ink,#fff)!important;background:none;border:0;cursor:pointer;font-family:inherit}
  nav .links .more>button:hover{background:rgba(127,127,127,.12)}
  nav .links .more .dd{display:none!important}
  nav .links .more.open .dd{display:block!important;padding-left:8px!important}
  nav .links .more.open>button{color:var(--accent)!important}
}

@media(max-width:900px){html[data-theme] .hero3 .cta,html[data-theme] .hgrid .cta{width:100%!important;max-width:none!important}}

/* dropdown arrows: real SVG chevrons, perfectly centred */
nav .more>button{display:inline-flex;align-items:center;gap:6px}
nav .more>button .chev{width:14px;height:14px;flex:none;transition:transform .25s ease}
nav .more.open>button .chev,nav .more:hover>button .chev{transform:rotate(180deg)}
@media(max-width:900px){
  nav .links .more>button{justify-content:space-between!important}
  nav .links .more>button .chev{width:18px;height:18px;transform:rotate(-90deg)}      /* closed: points right */
  nav .links .more.open>button .chev{transform:rotate(0deg)}                          /* open: points down */
  nav .links .more:hover>button .chev{transform:rotate(-90deg)}
  nav .links .more.open:hover>button .chev{transform:rotate(0deg)}
}

select.mini.pick{cursor:pointer;padding:7px 10px;font:inherit;font-size:.78rem}
