/* Keep the floating actions clear of the phone's bottom safe area. */
:root{
 --floating-action-size:54px;
 --floating-actions-inset:calc(32px + env(safe-area-inset-bottom,0px));
 --floating-actions-clearance:calc(var(--floating-action-size) + var(--floating-actions-inset) + 16px);
}
.floating-actions{
 position:fixed;
 pointer-events:none;
 z-index:90;
 right:max(var(--gutter),env(safe-area-inset-right,0px));
 bottom:var(--floating-actions-inset);
 display:flex;
 align-items:center;
 gap:8px;
}
.floating-actions,
.floating-enroll[inert]{
 opacity:0;
 visibility:hidden;
}
.floating-actions{transition:opacity .18s ease-in-out,visibility 0s .18s}
.floating-actions:not([inert]){
 opacity:1;
 visibility:visible;
 transition-delay:0s;
}
.floating-actions .button{min-height:var(--floating-action-size)}
.floating-actions .button:not([inert]){pointer-events:auto}
.floating-actions .button:focus-visible{border-radius:999px}
.floating-enroll{
 transition:opacity .18s ease-in-out,visibility .18s,background .2s,transform .2s,box-shadow .2s;
}
.floating-actions .back-to-top{
 width:var(--floating-action-size);
 height:var(--floating-action-size);
 padding:0;
 flex:none;
}
html:has(.floating-actions:not([inert])){scroll-padding-bottom:var(--floating-actions-clearance)}
.back-to-top[inert]{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:767px),(max-height:500px){
 :root{--floating-action-size:48px;--floating-actions-inset:calc(16px + env(safe-area-inset-bottom,0px))}
 .floating-enroll{padding:10px 18px}
}

/* Shared transparent switch. Hover/focus previews the capsule; click selects a plan. */
.paired-actions{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:290px}
.paired-actions::before{content:'';position:absolute;z-index:-1;top:5px;bottom:5px;left:5px;width:calc(50% - 7px);border-radius:999px;background:#fff;border:1px solid #d5d5d5;box-shadow:inset 0 1px 3px #fff,0 3px 12px #0000000c;opacity:0;transform:translateX(0);transition:transform .3s var(--ease),opacity .18s}
.paired-actions>a,.paired-actions>button,.plan-tabs button[aria-pressed=true]{position:relative;z-index:1;background:transparent;box-shadow:none;border-color:transparent;min-width:0}
.paired-actions>a:hover,.paired-actions>button:hover{background:transparent}
.paired-actions:has(>[aria-pressed=true])::before,.paired-actions:has(>a:hover)::before,.paired-actions:has(>button:hover)::before,.paired-actions:has(>:focus-visible)::before{opacity:1}
.paired-actions:has(>[aria-pressed=true]:nth-child(2))::before{transform:translateX(calc(100% + 4px))}
.paired-actions:has(>:nth-child(1):hover)::before,.paired-actions:has(>:nth-child(1):focus-visible)::before{transform:translateX(0)}
.paired-actions:has(>:nth-child(2):hover)::before,.paired-actions:has(>:nth-child(2):focus-visible)::before{transform:translateX(calc(100% + 4px))}
@media(prefers-reduced-motion:reduce){.paired-actions::before{transition:none}}

/* Course content, restyled with the neutral glass system. */
main>.author,
main>.author + .school-moments,
body>footer{
 background-image:linear-gradient(to bottom,var(--previous-section-color,var(--paper)),transparent clamp(28px,4vw,56px));
}
main>.author + .school-moments{--previous-section-color:var(--surface)}

.student-gallery{display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:28px;align-items:start;margin-bottom:38px}
.student-gallery figure:nth-child(2){margin-top:80px}.student-gallery figure:nth-child(3){margin-top:160px}
.student-gallery img{height:auto;aspect-ratio:4/5;object-fit:cover}
.student-gallery figcaption{margin-top:16px;font-size:14px}
.workshop-announcement{
 display:grid;
 grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
 gap:4%;
 align-items:center;
}
.workshop-copy{display:flex;flex-direction:column;align-items:flex-start;gap:30px}
.workshop-copy>p{max-width:460px}.workshop-copy .paired-actions{width:min(100%,390px)}
.workshop-film{width:min(100%,45vw,760px);margin-inline:auto}
.course-film{max-width:1333px;margin-inline:auto}
.inline-video-frame{position:relative}
.inline-video-player{
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:16/9;
 border:0;
 border-radius:16px;
 background:var(--surface);
}
.inline-video-play{
 position:absolute;
 inset:0;
 display:grid;
 place-items:center;
 width:clamp(54px,5.5vw,84px);
 aspect-ratio:1;
 margin:auto;
 padding:0;
 border:0;
 border-radius:50%;
 background:var(--white);
 color:var(--ink);
}
.inline-video-play[hidden]{display:none}
.inline-video-play:hover{background:var(--surface)}
.inline-video-play svg{width:42%;height:42%}
.inline-video-status:not(:empty){display:block;margin-bottom:4px}
.inline-video figcaption{margin-top:15px;font-size:13px;color:var(--muted)}
.inline-video figcaption a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){
 .workshop-announcement{grid-template-columns:minmax(0,1fr);row-gap:32px}
 .workshop-film{width:min(100%,660px)}
}
.course-question-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px}
.course-question-list h3{font-size:30px;line-height:1.1;letter-spacing:-.04em;margin-bottom:24px}
.course-question-list p{font-size:16px;line-height:1.65}
.includes-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;align-items:center}
.includes-photo{height:560px}.includes-photo img{filter:grayscale(.7);object-position:center}
.includes-list{margin:0;display:flex;flex-direction:column;gap:40px}.includes-list dt{font-size:32px;letter-spacing:-.04em;line-height:1.15}.includes-list dd{margin:14px 0 0;font-size:16px;max-width:390px}
.program{padding-bottom:0}.program-layout{align-items:start}.program-photo{position:sticky;top:110px;height:650px}
.module-body{max-width:600px}.lesson-list{padding-left:22px;margin:24px 0}.lesson-list li{font-size:16px;padding-left:6px;margin:16px 0;line-height:1.6}
.bonus-lesson{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;padding:48px 0 0;margin-top:64px;border-top:1px solid var(--border);align-items:start}
.bonus-badge{display:inline-flex;align-items:center;padding:7px 17px;border-radius:999px;background:var(--ink);color:var(--white);font-size:14px;line-height:1.4}
.bonus-lesson h3{font-size:clamp(44px,4.5vw,68px);font-weight:550;line-height:1.04;letter-spacing:-.055em;max-width:600px;margin-top:24px}
.bonus-topics{display:grid;gap:28px;padding-top:4px}
.bonus-topic{display:grid;grid-template-columns:28px minmax(0,1fr);gap:20px;align-items:start}
.bonus-topic + .bonus-topic{padding-top:28px;border-top:1px solid var(--border)}
.bonus-number{font-family:'Medeo Mono',monospace;font-size:12px;line-height:1.5;color:var(--muted);padding-top:8px}
.bonus-topic h4{font-size:clamp(25px,2.2vw,32px);line-height:1.15;font-weight:550;letter-spacing:-.035em;margin-bottom:12px}
.bonus-lesson p{font-size:16px;line-height:1.6;max-width:440px}
.course-screen-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.course-screen-gallery figure{min-width:0}.course-screen-gallery a{display:block;background:#e8e8e8;padding:14px;transition:background .2s}
.course-screen-gallery a:hover{background:#d8d8d8}.course-screen-gallery img{height:auto;aspect-ratio:1.2;object-fit:cover;object-position:top}
.course-screen-gallery figcaption{margin:15px 0 0;font-size:14px}
.enroll{padding-bottom:clamp(48px,7vw,100px)}
.plan-prices{
 display:flex;
 align-items:baseline;
 flex-wrap:wrap;
 column-gap:18px;
 margin:18px 0 5px;
}
.plan-prices .price{margin:0;font-weight:550;font-size:clamp(46px,5.4vw,78px);white-space:nowrap}
.old-price{color:var(--muted);text-decoration-thickness:1px;white-space:nowrap;font-variant-numeric:tabular-nums}
.plan-prices .old-price{font-size:clamp(18px,2vw,28px)}

body:has(.booking-dialog[open]){overflow:hidden}
.booking-dialog{
 width:min(512px,calc(100% - 32px));
 max-width:none;
 max-height:calc(100dvh - 32px);
 padding:clamp(20px,5vw,36px);
 overflow:auto;
 overscroll-behavior:contain;
 border:1px solid var(--white);
 border-radius:26px;
 background:var(--paper);
 color:var(--ink);
 box-shadow:0 18px 70px #0003;
}
.booking-dialog::backdrop{background:#22222250;backdrop-filter:blur(6px)}
.booking-dialog h2{padding-right:42px;font-size:clamp(28px,5vw,38px);line-height:1.08}
.booking-dialog h2:focus{outline:none}
.booking-close{
 position:absolute;
 top:12px;
 right:12px;
 display:grid;
 place-items:center;
 width:44px;
 height:44px;
 padding:0;
 border:1px solid var(--border);
 border-radius:50%;
 background:var(--white);
 font-size:24px;
 line-height:1;
}
.booking-close:hover{background:var(--hover)}
.booking-course{margin-top:8px;color:var(--muted);font-size:15px}
.booking-summary{
 display:flex;
 flex-wrap:wrap;
 align-items:baseline;
 justify-content:space-between;
 gap:6px 12px;
 margin:18px 0 12px;
 padding:12px 16px;
 border-radius:14px;
 background:var(--surface);
 font-size:15px;
}
.booking-prices{display:flex;align-items:baseline;gap:10px}
.booking-prices .old-price{font-size:13px}
.booking-prices strong{font-size:21px;white-space:nowrap;font-variant-numeric:tabular-nums}
.booking-note{margin:0;color:var(--muted);font-size:13px}
.booking-form{display:grid;gap:14px;margin-top:18px}
.booking-form label{display:grid;gap:5px;font-size:14px}
.booking-form input{
 width:100%;
 min-height:46px;
 padding:10px 14px;
 border:1px solid var(--border);
 border-radius:12px;
 background:var(--white);
 color:var(--ink);
 font:inherit;
 font-size:16px;
}
.booking-form input:focus-visible,.booking-close:focus-visible{outline-offset:2px}
.booking-form .button{margin-top:4px;min-height:46px}
.author-facts{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:17px;max-width:440px;font-size:16px}
.author-facts li{padding-left:17px;position:relative}.author-facts li::before{content:'';width:4px;height:4px;background:currentColor;position:absolute;top:11px;left:0;border-radius:50%}
.audience-grid{display:grid;grid-template-columns:1fr 1fr;gap:9%}
.audience-grid h3{font-size:clamp(28px,2.7vw,40px);margin-bottom:20px;max-width:18ch}
.audience-grid p{font-size:17px;max-width:48ch}
.skills-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;border-top:1px solid var(--border);margin-top:52px;padding-top:28px}
.skills-grid span{font:12px 'Medeo Mono',monospace;color:var(--muted)}
.skills-grid h3{font-size:25px;line-height:1.12;margin:18px 0 12px;letter-spacing:-.035em}
.skills-grid p{font-size:15px;color:var(--muted)}
.course-questions{padding-bottom:120px}
main>.author{row-gap:56px}
.author .author-method{font-size:16px;line-height:1.6}
.author-video-intro{align-self:center}
.author-video-intro h3{font-size:clamp(28px,3vw,44px);margin-bottom:18px}
.author-video-intro p{font-size:16px;max-width:35ch}
.author-film{width:100%;min-width:0}
#school-moments{padding-top:72px}
#school-moments .photo-rail>figure{height:390px}
.learning-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:9%;align-items:start}
.learning-example{position:sticky;top:110px}
.learning-example a{display:block;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#fff}
.learning-example img{height:auto;object-fit:contain}
.learning-example figcaption{margin-top:16px;max-width:48ch;color:var(--muted);font-size:13px}
.learning-steps{list-style:none;counter-reset:learning;padding:0;margin:0}
.learning-steps li{position:relative;padding:0 0 25px 47px;counter-increment:learning}
.learning-steps li+li{padding-top:25px;border-top:1px solid var(--border)}
.learning-steps li::before{content:'0' counter(learning);position:absolute;left:0;top:6px;font:12px 'Medeo Mono',monospace;color:var(--muted)}
.learning-steps li+li::before{top:31px}
.learning-steps h3{font-size:28px;letter-spacing:-.035em;margin-bottom:12px}
.learning-steps p{font-size:16px;line-height:1.6}
.learning-conditions{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;padding-top:32px;margin-top:42px;border-top:1px solid var(--border)}
.learning-conditions h3{font-size:26px;margin-bottom:15px}
.learning-conditions p{font-size:16px;max-width:48ch}
.text-link{display:inline-block;text-decoration:underline;text-underline-offset:5px;padding-block:12px;font-size:15px}
.module-overview{display:grid;gap:10px}
.module-overview small{font-size:14px;line-height:1.5;letter-spacing:0;color:var(--muted);max-width:42ch}
.plans-common{max-width:800px;font-size:17px;margin-bottom:36px}
.plans-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.plan-card{display:flex;flex-direction:column;padding:clamp(24px,3vw,44px);border:1px solid var(--border);border-radius:24px;background:#ffffff55;box-shadow:inset 0 1px 0 #fff}
.plan-card h3{font-size:34px;margin-bottom:16px}
.plan-fit{font-size:16px;min-height:3.2em;max-width:40ch;color:var(--muted)}
.plan-card .plan-prices{margin-top:32px}
.plan-card .price{font-size:clamp(44px,4.8vw,70px)}
.plan-features{display:grid;gap:0;margin:25px 0 30px;font-size:15px;flex:1}
.plan-features div{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:16px 0;border-top:1px solid var(--border)}
.plan-features dt{color:var(--muted)}
.plan-features dd{margin:0}
.plan-card .button{align-self:flex-start;margin-top:auto}
.faq-intro{font-size:16px;margin:25px 0;max-width:35ch}
@media(max-width:1000px){.skills-grid{grid-template-columns:1fr 1fr;gap:32px 6%}.learning-layout,.learning-conditions{gap:6%}.plan-card h3{font-size:28px}.plan-features div{grid-template-columns:1fr;gap:5px}.plan-card .button{padding-inline:18px;font-size:14px}.plan-card .old-price{font-size:18px}}
@media(max-width:767px){.audience-grid{grid-template-columns:1fr;gap:36px}.audience-grid h3{font-size:30px;max-width:none}.skills-grid{gap:30px 20px;margin-top:36px}.skills-grid h3{font-size:23px}.skills-grid p{font-size:14px}.course-questions{padding-bottom:80px}main>.author{grid-template-columns:1fr;row-gap:30px}.author-video-intro{margin-top:20px}#school-moments{padding-top:55px}#school-moments .photo-rail>figure{height:360px}.learning-layout,.learning-conditions{grid-template-columns:1fr;gap:36px}.learning-example{position:static}.learning-steps h3{font-size:26px}.learning-conditions{margin-top:12px}.plans-grid{grid-template-columns:1fr;gap:22px}.plan-card{padding:28px 24px}.plan-card h3{font-size:30px}.plan-fit{min-height:0}.plan-card .price{font-size:52px}.plan-features div{grid-template-columns:1fr 1fr;gap:14px}.plan-card .button{width:100%;font-size:15px}.faq{grid-template-columns:1fr;gap:40px}.faq-list summary{font-size:20px}.module-overview small{font-size:14px}}
.moments-gallery{display:grid;grid-template-columns:1fr 1.2fr .85fr;gap:26px;align-items:end}
.moments-gallery figure{height:530px}.moments-gallery figure:nth-child(2){height:650px}.moments-gallery figure:nth-child(3){height:450px}
.contacts{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;padding-bottom:140px}
.contact-details{display:flex;flex-direction:column;align-items:flex-start;gap:15px}.contact-details>a{font-size:28px;letter-spacing:-.035em;min-height:44px;display:flex;align-items:center}
.contact-details>a:hover{text-decoration:underline;text-underline-offset:6px}.contact-details>p{font-size:15px;line-height:1.8;margin-top:12px}
.contact-documents{display:flex;flex-direction:column;gap:8px;margin-top:16px;font-size:14px}.contact-documents a{min-height:38px;display:flex;align-items:center}.contact-documents a:hover{text-decoration:underline}
@media(max-width:1000px){.student-gallery{gap:20px}.student-gallery figure:nth-child(2){margin-top:50px}.student-gallery figure:nth-child(3){margin-top:100px}.includes-layout,.contacts{gap:6%}.course-question-list{gap:25px}.course-question-list h3{font-size:26px}.includes-photo{height:490px}.includes-list dt{font-size:27px}.course-screen-gallery{gap:20px}.moments-gallery{gap:20px}.moments-gallery figure{height:430px}.moments-gallery figure:nth-child(2){height:530px}.moments-gallery figure:nth-child(3){height:360px}.contacts{padding-bottom:100px}.program-photo{height:550px}.bonus-lesson{padding-top:40px}}
@media(max-width:767px){.student-gallery{grid-template-columns:1fr 1fr;gap:28px 16px}.student-gallery figure:nth-child(2){margin-top:50px}.student-gallery figure:nth-child(3){margin:0;grid-column:1/-1;width:75%;justify-self:center}.student-gallery figcaption{font-size:13px;line-height:1.5}.student-gallery{margin-bottom:28px}.workshop-copy{gap:25px}.workshop-copy>p{font-size:16px}.workshop-copy .paired-actions{width:100%}.paired-actions>a,.paired-actions>button{padding-left:14px;padding-right:14px;font-size:13px}.course-question-list{grid-template-columns:1fr;gap:42px}.course-question-list h3{font-size:29px;margin-bottom:18px}.includes-layout{grid-template-columns:1fr;gap:35px}.includes-photo{height:350px}.includes-list{gap:30px}.includes-list dt{font-size:30px}.program-layout{gap:32px}.program-photo{position:relative;top:auto;height:440px}.bonus-lesson{grid-template-columns:1fr;gap:36px;margin-top:40px;padding:32px 0 0}.bonus-lesson h3{font-size:clamp(40px,8vw,54px);margin-top:20px}.bonus-topic{gap:14px}.bonus-topics{gap:24px}.bonus-topic + .bonus-topic{padding-top:24px}.course-screen-gallery{grid-template-columns:1fr 1fr;gap:25px 16px}.course-screen-gallery a{padding:7px}.course-screen-gallery figcaption{font-size:13px}.author-facts{font-size:16px}.moments-gallery{grid-template-columns:1fr 1fr;gap:16px;align-items:start}.moments-gallery figure{height:310px}.moments-gallery figure:nth-child(2){height:360px;margin-top:40px}.moments-gallery figure:nth-child(3){height:390px;grid-column:1/-1;width:75%;justify-self:center}.contacts{grid-template-columns:1fr;gap:35px;padding-bottom:80px}.contact-details>a{font-size:27px}.course-screen-gallery img{aspect-ratio:1}.menu-surface nav a{min-height:65px}}
