/* Editorial revision: midnight blue, architectural texture and fluid canvases. */
:root { --gutter: clamp(20px, 4vw, 144px); --page-max: 2400px; }
.wrap { width: min(var(--page-max), calc(100% - var(--gutter) * 2)); }
body { overflow-wrap: break-word; }
.preview-bar { min-height: 36px; font-size: 11px; }
.preview-bar button { min-height: 28px; font-size: 11px; }
.site-header { height: clamp(108px, 7.5vw, 160px); border: 0; gap: 28px; }
.brand { width: clamp(100px, 7vw, 150px); }
nav { gap: clamp(20px, 2.3vw, 48px); padding: 8px 30px; border: 1px solid var(--line); border-radius: 50px; font-size: clamp(13px, .85vw, 18px); background: #0d244044; }
nav a { padding: 8px 0; }
nav a.active:after { bottom: 0; }
.eyebrow { font-size: clamp(10px, .65vw, 14px); letter-spacing: .17em; }

/* Galaxy-inspired blue rim and light bloom, with no external animation library. */
.button, .button-light { position: relative; isolation: isolate; min-height: 54px; padding: 16px 27px; gap: 30px; border: 1px solid #6b9cc965; border-radius: 100px; color: #effaff; background: radial-gradient(ellipse at 50% 100%, #2475ad24, transparent 75%), #07182c; box-shadow: inset 0 1px 0 #bddfff24, 0 0 0 1px #15375c50; font-size: clamp(13px, .85vw, 18px); transition: box-shadow .45s, border-color .45s, background .45s, transform .45s; }
.button:before { content: ''; position: absolute; z-index: -1; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--rim-angle, 90deg), #40629b50, #71c7ef, #40629b40, #4165a7, #40629b50); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; opacity: .5; animation: rim-turn 9s linear infinite; pointer-events: none; }
.button:after { content: ''; position: absolute; inset: -14px 18%; z-index: -2; border-radius: 50%; background: #329bd8; filter: blur(26px); opacity: .04; transition: opacity .5s; pointer-events: none; }
.button:hover, .button:focus-visible, .button-light:hover { background: radial-gradient(ellipse at center, #14517088, transparent 80%), #081c32; color: #fff; border-color: #7bc9ed; box-shadow: inset 0 1px 0 #cff4ff50, 0 0 25px #4aace32b; transform: translateY(-2px); }
.button:hover:after, .button:focus-visible:after { opacity: .25; }
.button:hover:before, .button:focus-visible:before { opacity: 1; }
.button-small { min-height: 48px; padding: 12px 23px; font-size: clamp(12px, .8vw, 17px); }
@property --rim-angle { syntax: '<angle>'; inherits: false; initial-value: 90deg; }
@keyframes rim-turn { to { --rim-angle: 450deg; } }

/* Expanding-circle arrow used for a small selection of secondary actions. */
.arrow-link { position: relative; min-height: 48px; display: inline-flex; align-items: center; padding: 12px 22px 12px 60px; white-space: nowrap; font-size: clamp(12px, .85vw, 18px); font-weight: 600; }
.arrow-circle { position: absolute; left: 0; top: 0; height: 100%; width: 48px; border: 1px solid #c5e9ff40; border-radius: 100px; background: #c5e9ff10; transition: width .45s cubic-bezier(.65,0,.076,1), background .45s; }
.arrow-circle i { position: absolute; left: 16px; top: calc(50% - 1px); width: 17px; height: 2px; background: transparent; transition: transform .45s, background .45s; }
.arrow-circle i:after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid #c5e9ff; border-right: 2px solid #c5e9ff; transform: rotate(45deg); }
.arrow-label { position: relative; z-index: 1; }
.arrow-link:hover .arrow-circle, .arrow-link:focus-visible .arrow-circle { width: 100%; background: #c5e9ff1b; }
.arrow-link:hover i, .arrow-link:focus-visible i { background: #c5e9ff; transform: translateX(5px); }

.hero { position: relative; isolation: isolate; border: 1px solid #7aa1cd26; border-radius: clamp(24px, 2.5vw, 54px); background: #091d36; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: clamp(34px, 4.8vw, 140px); padding: clamp(42px, 4.8vw, 112px) clamp(30px, 4.5vw, 112px); overflow: hidden; }
.hero:before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #091d36 5%, #091d36ae 52%, #091d3620), url('assets/pilares-noche.png') right center / cover no-repeat; opacity: .8; pointer-events: none; }
.hero h1 { font-size: clamp(54px, 5.1vw, 120px); line-height: 1.05; letter-spacing: -.06em; margin: 30px 0; }
.hero h1>span { font-size: .86em; line-height: 1.15; white-space: normal; display: inline-block; }
.hero-description { max-width: 42ch; font-size: clamp(15px, 1.05vw, 23px); line-height: 1.85; }
.hero-actions { flex-direction: row; flex-wrap: wrap; gap: 22px; margin-top: clamp(30px, 2.8vw, 58px); }
.hero-footnote { max-width: 460px; margin-top: clamp(32px, 3vw, 72px); padding-top: 22px; font-size: clamp(11px, .75vw, 16px); }
.hero-visual { width: 100%; max-width: 740px; justify-self: center; padding: 0 0 34px; }
.portrait-frame { width: 100%; height: auto; aspect-ratio: 1; border-radius: 180px 180px 22px 22px; border: 1px solid #d9eeff40; box-shadow: 0 32px 60px #0004; }
.portrait { object-position: 50% 0; }
.portrait-caption { left: clamp(25px, 2.2vw, 48px); bottom: 112px; max-width: calc(100% - 50px); width: 85%; }
.portrait-caption p { font-family: Georgia, serif; font-size: clamp(27px, 2vw, 44px); letter-spacing: -.04em; line-height: 1.1; max-width: 17ch; }
.portrait-caption>span { font-size: clamp(9px, .65vw, 13px); }
.portrait-number { top: 42%; right: 17px; font-size: 9px; }
.portrait-shade { background: linear-gradient(0deg, #06182ffa, #071c36c9 13%, transparent 58%); }
.floating-lesson { right: -17px; bottom: 0; padding: clamp(17px, 1.5vw, 30px); border-radius: 16px; gap: 20px; }
.floating-lesson strong { font-size: clamp(15px, 1.1vw, 23px); }
.floating-lesson small { font-size: clamp(9px, .6vw, 13px); }
.lesson-link-label { font-size: clamp(11px, .7vw, 15px); }
.round-play { width: clamp(44px, 3.4vw, 64px); height: clamp(44px, 3.4vw, 64px); }
.subject-strip { margin-top: clamp(30px, 3vw, 60px); background: transparent; }
.subject-strip .wrap { min-height: clamp(85px, 6vw, 130px); }
.subject-strip .wrap>span { font-size: clamp(10px, .65vw, 14px); }
.subject-strip a { font-size: clamp(14px, 1vw, 22px); padding-block: 15px; gap: clamp(24px, 4vw, 100px); }

.about-section, .learning-section { gap: clamp(45px, 8vw, 200px); padding-block: clamp(80px, 7vw, 165px); align-items: start; }
h2, .about-section h2, .section-heading h2, .learning-heading h2 { font-size: clamp(38px, 3.15vw, 76px); line-height: 1.12; letter-spacing: -.045em; }
h2 span { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.about-copy h3 { font-size: clamp(23px, 1.7vw, 38px); }
.about-copy #profile-bio { max-width: 51ch; font-size: clamp(15px, 1.05vw, 22px); }
.profile-role { font-size: clamp(13px, .9vw, 19px); }
.about-copy .pending-note { max-width: 52ch; }
.text-link { font-size: clamp(13px, .9vw, 19px); min-height: 44px; }
.pending-note { font-size: clamp(11px, .75vw, 15px)!important; }
.brand-ribbon { background: #061632 url('assets/brand-ribbon.svg') center / cover no-repeat; min-height: clamp(115px, 12vw, 280px); display: flex; align-items: center; border-block: 1px solid #8fc4f12b; }
.brand-ribbon .wrap { display: flex; align-items: center; justify-content: space-around; gap: 30px; }
.brand-ribbon span { font-size: clamp(11px, 1.3vw, 27px); letter-spacing: .28em; color: #eaf5ff; text-shadow: 0 2px 20px #001530; }
.library-section { position: relative; padding-block: clamp(80px, 6.5vw, 156px); background: radial-gradient(ellipse at 50% 40%, #18386155, transparent 68%), #050f21; overflow: clip; }
.section-heading { align-items: center; gap: 50px; margin-bottom: 20px; }
.section-intro { font-size: clamp(14px, 1vw, 21px); line-height: 1.8; }
.catalog-note { font-size: clamp(11px, .75vw, 15px); }

/* Flat layered poster gallery; player views retain their 16:9 aspect ratio. */
.featured-gallery { --poster-width: clamp(280px, 29vw, 610px); margin-top: 35px; }
.gallery-stage { position: relative; height: calc(var(--poster-width) * 1.26 + 55px); isolation: isolate; touch-action: pan-y; }
.gallery-stage:after { content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 18%; background: #2b5e9a35; filter: blur(45px); z-index: -1; border-radius: 50%; }
.feature-poster { user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.feature-poster { position: absolute; top: 20px; left: 50%; width: var(--poster-width); aspect-ratio: .78; padding: 0; border-radius: clamp(24px, 2.3vw, 44px); border: 1px solid #c8e8ff50; overflow: hidden; text-align: left; background: #17345b; color: white; transform: translateX(-50%); transition: transform .7s cubic-bezier(.22,.7,.2,1), filter .7s, box-shadow .7s; box-shadow: 0 24px 60px #0005; }
.feature-poster[data-position='-1'] { transform: translateX(-119%) scale(.88); z-index: 1; filter: brightness(.55); }
.feature-poster[data-position='1'] { transform: translateX(19%) scale(.88); z-index: 1; filter: brightness(.55); }
.feature-poster[data-position='0'] { z-index: 3; box-shadow: 0 26px 80px #0008, 0 0 0 1px #9bc5e12c; }
.feature-poster[data-position='0']:hover { transform: translateX(-50%) translateY(-5px); }
.feature-poster>img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 45%; }
.feature-poster[data-lesson='sentencia']>img { object-position: 48% 50%; }
.feature-poster[data-lesson='decisiones']>img, .feature-poster[data-lesson='ejecucion']>img { opacity: .8; }
.feature-poster:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #07172e55, transparent 28%, #06162b33 42%, #041020f5 85%); pointer-events: none; }
.feature-kicker { position: absolute; z-index: 1; left: 28px; top: 26px; right: 28px; display: flex; justify-content: space-between; gap: 12px; font-size: clamp(9px, .6vw, 13px); letter-spacing: .13em; }
.feature-number { border: 1px solid #d5edff55; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; margin-top: -7px; flex-shrink: 0; }
.feature-copy { position: absolute; z-index: 1; bottom: 28px; left: 30px; right: 30px; }
.feature-category { display: block; text-transform: uppercase; letter-spacing: .15em; font-size: clamp(9px, .65vw, 13px); color: #c5e9ff; margin-bottom: 15px; }
.feature-title { display: block; font-family: Georgia, serif; font-size: clamp(32px, 2.6vw, 60px); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
.feature-action { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 26px; border-top: 1px solid #c5e9ff40; font-size: clamp(11px, .8vw, 17px); }
.feature-action svg { border: 1px solid #c5e9ff60; border-radius: 50%; padding: 12px; width: 46px; height: 46px; fill: white; stroke-width: 0; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 28px; padding-top: 24px; }
.gallery-arrow { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #b2ddff40; border-radius: 50%; background: #d0eeff08; font-size: 25px; transition: background .2s; }
.gallery-arrow:hover { background: #c5e9ff20; }
#gallery-status { min-width: 115px; text-align: center; font-size: 13px; color: #d5e9f9; }
.gallery-hint { margin-top: 19px; font-size: 11px; text-align: center; }
.library-section .catalog-note { text-align: center; margin-top: 35px; }
.learning-steps>div { gap: 35px; padding: 30px 0; }
.learning-steps>div>span { font-size: clamp(12px, .85vw, 18px); }
.learning-steps h3 { font-size: clamp(20px, 1.55vw, 32px); }
.learning-steps p { max-width: 44ch; font-size: clamp(14px, .95vw, 20px); }
.closing-section { background: #07172e url('assets/pilares-noche.png') right center / cover no-repeat; position: relative; }
.closing-section:before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#07172ef0 5%,#07172e55 100%); }
.closing-section .wrap { padding-block: clamp(80px, 7vw, 168px); }
.closing-section h2 { font-size: clamp(40px, 4.1vw, 94px); }
.closing-section img { display: none; }
footer { padding-top: 60px!important; }
.footer-brand img { width: clamp(90px, 6.5vw, 140px); }
.footer-brand p, footer>div:nth-child(2) { font-size: clamp(12px, .85vw, 17px); }
.footer-bottom, .footer-bottom button { font-size: clamp(10px, .7vw, 14px); }

/* Student views grow with the screen while the player remains bounded. */
.classroom, .lesson-page { padding-block: 40px 100px; }
.classroom-heading h1 { font-size: clamp(48px, 4.5vw, 105px); }
.classroom-heading>p { font-size: clamp(14px, 1vw, 21px); }
.demo-tag, .crumb, .results-line { font-size: clamp(11px, .75vw, 15px); }
.lesson-grid { gap: clamp(22px, 2vw, 45px); }
.card-copy { padding: clamp(24px, 2vw, 42px); }
.card-category { font-size: clamp(10px, .7vw, 15px); }
.card-copy h3 { font-size: clamp(24px, 1.6vw, 38px); min-height: 0; }
.card-copy p:not(.card-category) { font-size: clamp(13px, .9vw, 19px); min-height: 0; }
.card-footer a { font-size: clamp(13px, .85vw, 18px); }
.save-button { width: 44px; height: 44px; }
.sample-pill { font-size: clamp(9px, .6vw, 13px); }
.search input, .filter-tabs button, .filter-button { font-size: clamp(14px, .9vw, 18px); }
.lesson-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 23%); gap: clamp(28px, 3vw, 70px); }
.lesson-layout>div { min-width: 0; }
.video-player { width: min(100%, calc(75svh * 16 / 9)); max-height: none; margin-inline: auto; }
.lesson-heading h1 { font-size: clamp(32px, 2.5vw, 56px); }
.lesson-description, .lesson-panel p, .lesson-tabs button, .lesson-panel label, .lesson-panel textarea { font-size: clamp(14px, .95vw, 20px); }
.related-item strong { font-size: clamp(13px, .85vw, 18px); }
.related-item small, .teacher-mini strong { font-size: clamp(11px, .7vw, 15px); }
.teacher-mini span { font-size: 12px; }

@media(min-width:2200px) {
  .hero { grid-template-columns: 1.25fr 1fr; }
  .hero-visual { max-width: 700px; }
  .portrait-frame { aspect-ratio: .95; }
  .hero h1 { font-size: 120px; }
}
@media(max-width:1100px) {
  .hero { gap: 30px; padding: 40px 32px; }
  .hero h1 { font-size: clamp(44px, 5.3vw, 58px); }
  .hero h1>span { font-size: .82em; }
  .hero-actions { gap: 17px; }
  .hero-actions .button { font-size: 13px; padding: 15px 22px; }
  .hero-footnote { margin-top: 27px; }
  .portrait-caption p { font-size: 29px; }
  .floating-lesson { right: -12px; gap: 12px; padding: 17px; }
  nav { padding: 7px 22px; gap: 24px; }
  .header-cta { gap: 15px; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:960px) {
  .site-header { height: 104px; position: relative; }
  .menu-toggle { display: inline-grid!important; width: 44px; height: 44px; }
  nav { display: none; position: absolute; top: 93px; left: 0; right: 0; z-index: 20; border-radius: 20px; background: #0a1d36f5; backdrop-filter: blur(18px); box-shadow: 0 15px 35px #0005; padding: 22px; }
  nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-size: 16px; }
  nav a { padding: 12px; }
  nav a.active:after { display: none; }
  .header-cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 40px; padding: 46px 44px 50px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(52px, 8vw, 76px); }
  .hero h1>span { font-size: .9em; }
  .hero-description { font-size: 17px; max-width: 48ch; }
  .hero-actions { flex-direction: row; gap: 26px; }
  .hero-footnote { display: none; }
  .hero-visual { max-width: 500px; }
  .portrait-frame { aspect-ratio: 1; }
  .portrait-caption p { font-size: 36px; }
  .floating-lesson { right: -18px; padding: 20px 25px; }
  .hero:before { background-position: center; background-size: auto 100%; }
  .subject-strip .wrap>span { display: none; }
  .subject-strip a { font-size: 14px; }
  .about-section, .learning-section { gap: 38px; }
  .about-section h2, .learning-heading h2 { font-size: 36px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading { gap: 30px; }
  .section-intro br { display: none; }
  .section-heading>div { flex: 1; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .lesson-aside #related-lessons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
  .related-item { display: grid; grid-template-columns: 90px 1fr; }
  .related-item img { width: 90px; height: 70px; margin: 0; }
}
@media(max-width:640px) {
  :root { --gutter: 20px; }
  .preview-bar { font-size: 9px; padding-inline: 20px; gap: 15px; }
  .preview-bar>span:nth-child(2) { display: none; }
  .preview-bar button { font-size: 10px; }
  .site-header { height: 92px; gap: 12px; }
  .brand { width: 88px; }
  .header-cta { font-size: 11px; min-height: 44px; padding: 10px 16px; gap: 14px; }
  .menu-toggle { width: 40px; height: 40px; }
  nav { top: 82px; }
  .hero { padding: 34px 23px 35px; gap: 34px; border-radius: 22px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .12em; gap: 9px; }
  .short-line { width: 18px; }
  .hero h1 { font-size: clamp(36px, 9.7vw, 60px); margin: 23px 0; }
  .hero h1>span { font-size: .87em; white-space: nowrap; }
  .hero-description { font-size: 14px; line-height: 1.85; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; }
  .hero-actions .button { min-height: 50px; padding: 14px 23px; gap: 30px; }
  .hero-actions .arrow-link { min-height: 44px; padding-block: 10px; font-size: 12px; padding-left: 57px; }
  .arrow-circle { width: 44px; }
  .arrow-circle i { left: 14px; }
  .hero-visual { padding: 0 0 30px; }
  .portrait-frame { aspect-ratio: .86; border-radius: 120px 120px 16px 16px; }
  .portrait-caption { left: 22px; bottom: 58px; max-width: calc(100% - 40px); }
  .portrait-caption p { font-size: clamp(26px, 6.9vw, 35px); }
  .portrait-caption>span { font-size: 8px; }
  .portrait-number { font-size: 7px; right: 12px; }
  .floating-lesson { right: -9px; left: 18px; padding: 14px; gap: 12px; border-radius: 12px; }
  .floating-lesson strong { font-size: 14px; }
  .floating-lesson small { font-size: 8px; }
  .lesson-link-label { font-size: 10px; }
  .round-play { width: 40px; height: 40px; }
  .subject-strip { margin-top: 28px; }
  .subject-strip .wrap { min-height: 76px; gap: 12px; }
  .subject-strip a { font-size: 11px; gap: 8px; }
  .about-section, .learning-section { grid-template-columns: 1fr; gap: 32px; padding-block: 65px; }
  .about-section h2, .learning-heading h2, .section-heading h2 { font-size: 36px; }
  .about-copy h3 { font-size: 23px; }
  .about-copy #profile-bio { font-size: 15px; }
  .brand-ribbon { min-height: 108px; background-size: auto 150px; }
  .brand-ribbon .wrap { gap: 12px; justify-content: space-between; }
  .brand-ribbon span { font-size: 9px; letter-spacing: .18em; }
  .library-section { padding-block: 65px; }
  .section-heading { display: block; }
  .section-heading>div+div { margin-top: 28px; }
  .section-intro { font-size: 14px; max-width: 42ch; margin-bottom: 15px; }
  .featured-gallery { --poster-width: min(72vw, 350px); width: calc(100% + 40px); margin-left: -20px; margin-top: 28px; overflow: hidden; }
  .gallery-stage { height: calc(var(--poster-width) * 1.29 + 45px); }
  .feature-poster { border-radius: 24px; }
  .feature-poster[data-position='-1'] { transform: translateX(-116%) scale(.88); }
  .feature-poster[data-position='1'] { transform: translateX(16%) scale(.88); }
  .feature-kicker { top: 24px; left: 21px; right: 21px; font-size: 8px; }
  .feature-number { width: 27px; height: 27px; }
  .feature-copy { left: 23px; right: 23px; bottom: 24px; }
  .feature-title { font-size: clamp(30px, 8.7vw, 41px); }
  .feature-category { font-size: 9px; margin-bottom: 12px; }
  .feature-action { margin-top: 20px; padding-top: 17px; font-size: 11px; }
  .feature-action svg { width: 40px; height: 40px; padding: 11px; }
  .gallery-controls { padding-top: 12px; gap: 22px; }
  .gallery-arrow { width: 48px; height: 48px; }
  .gallery-hint { max-width: 250px; margin-inline: auto; font-size: 10px; line-height: 1.7; }
  .library-section .catalog-note { text-align: left; font-size: 11px; margin-top: 28px; }
  .learning-steps h3 { font-size: 20px; }
  .learning-steps p { font-size: 14px; }
  .closing-section .wrap { padding-block: 66px; }
  .closing-section h2 { font-size: 40px; max-width: 400px; }
  .closing-section .eyebrow { font-size: 9px; }
  .closing-section { background-position: 62% center; }
  .classroom, .lesson-page { padding-block: 26px 60px; }
  .classroom-heading { display: block; }
  .classroom-heading h1 { font-size: 46px; }
  .classroom-heading>p { margin-top: 25px; font-size: 14px; }
  .library-tools { flex-wrap: wrap; }
  .search { min-width: 100%; }
  .search input { font-size: 16px; }
  .filter-tabs { gap: 22px; }
  .filter-tabs button { font-size: 13px; }
  .lesson-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-copy { padding: 24px; }
  .card-copy h3 { font-size: 25px; }
  .card-copy p:not(.card-category) { font-size: 14px; }
  .results-line { font-size: 10px; }
  .video-player { min-height: 230px; }
  .video-player:has(iframe) { min-height: 0; }
  .lesson-heading h1 { font-size: 31px; }
  .lesson-aside #related-lessons { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { gap: 25px; padding: 0; }
  .footer-bottom { gap: 14px; }
  .footer-bottom button { min-height: 30px; }
  form input:not([type=file]), form textarea, form select { font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

/* Requested refinements: straight portrait frame and readable lower caption. */
.portrait-frame { border-radius: 18px; }
.portrait-caption { left: 0; bottom: 0; width: 100%; max-width: none; padding: 26px 30px 24px; background: linear-gradient(0deg,#07172efc 15%,#07172ee8 70%,#07172e00); }
.portrait-caption>span { color: #e0f2ff; font-size: clamp(10px,.7vw,14px); display: block; padding-top: 12px; }
.portrait-caption p { font-size: clamp(26px,1.85vw,40px); }
.hero-visual { padding-bottom: 0; }
.floating-lesson { position: relative; inset: auto; margin: 16px 0 0 auto; width: fit-content; max-width: 100%; }
.small-arrow, .button .small-arrow { width: 17px; height: 17px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button>span, .text-link>span { display: inline-flex; align-items: center; }
.gallery-arrow { padding: 0; line-height: 1; }
.gallery-arrow svg, .gallery-arrow .small-arrow { display: block; width: 20px; height: 20px; margin: 0; }
#gallery-dots { display: flex; gap: 10px; align-items: center; justify-content: center; min-width: 65px; }
#gallery-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #64829f; transition: background .3s,transform .3s; }
#gallery-dots i.active { background: #d5efff; transform: scale(1.4); }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; min-width: 0!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:640px){
 .portrait-frame { border-radius: 14px; }
 .portrait-caption { padding: 18px 22px; }
 .portrait-caption p { font-size: clamp(25px,6.9vw,35px); }
 .floating-lesson { margin-top: 14px; width: 100%; }
}
