/* Shared photographic bands. Original photographs stay unmodified. */
:root{--band-paper:#f6f4ef;--band-dark:#25282d;--page-gutter:max(52px,calc((100vw - 1280px)/2))}
.intro-section,.testimonial-section{background:linear-gradient(120deg,#fff 25%,#faf9f6 100%)}
.programs-section,.alternate,.closing,.paper,.soft-surface,.enso-story{background:linear-gradient(115deg,#faf9f6 0%,#f1eee7 100%)}
.page-heading,.education-page .edu-hero{background:linear-gradient(120deg,#fff 0%,#f4f1ea 80%,#ebe6dc 100%)}

/* Training offers are whole, clickable image bands with a quiet text side. */
.program-panels{gap:32px;width:calc(100% + 2 * var(--page-gutter));margin-left:calc(-1 * var(--page-gutter))}
.program-panel{min-height:500px;border-radius:0;background:#25282d}
.program-panel>img{object-position:72% 42%}
.program-panel .panel-shade{background:linear-gradient(90deg,#25282d 0%,#25282df5 27%,#25282dc7 42%,#25282d3d 65%,#25282d0a 100%)}
.program-panel .panel-copy{padding:64px 32px 64px var(--page-gutter);max-width:calc(510px + var(--page-gutter))}
.program-panel:focus-visible{outline-offset:-5px}

/* Awi's original transparent portrait belongs to the whole section. */
.teacher-section{padding-block:70px 0;background:radial-gradient(ellipse at 78% 45%,#55554f 0%,#343739 38%,#25282d 76%)}
.teacher-layout{grid-template-columns:1.05fr 1fr;gap:64px;align-items:center}
.teacher-layout>div:last-child{grid-column:1;grid-row:1;padding-block:35px 75px}
.teacher-image{grid-column:2;grid-row:1;align-self:end;width:100%;max-width:none;border-radius:0;background:none;overflow:visible}
.teacher-image img{display:block;width:100%;height:650px;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(#000 0%,#000 85%,transparent 100%)}
.teacher-image:after{display:none}
.teacher-image>span{left:50%;bottom:22px;transform:translateX(-50%);white-space:nowrap}

/* Broad editorial headers: the photo dissolves into warm white. */
.school-hero{position:relative;isolation:isolate;overflow:hidden;padding-block:80px;background:linear-gradient(110deg,#faf9f6 0%,#f3f0e9 100%)}
.school-hero-grid{min-height:480px;grid-template-columns:1fr 1.05fr;gap:64px}
.school-hero-copy{position:relative;z-index:2}
.school-hero:not(:has(.awi-portrait)) .school-hero-photo{position:absolute;inset:0 0 0 auto;width:61%;height:100%;border-radius:0;box-shadow:none;background:none;mask-image:linear-gradient(90deg,transparent 0%,#000 32%,#000 100%)}
.school-hero:not(:has(.awi-portrait)) .school-hero-photo img{object-position:57% center}
.school-hero:has(.awi-portrait){padding-bottom:0;background:radial-gradient(ellipse at 78% 45%,#e0d9ca 0%,#f3f0e9 43%,#faf9f6 80%)}
.school-hero-photo.awi-portrait{height:620px;background:none;border-radius:0;box-shadow:none;mask-image:linear-gradient(#000 0%,#000 86%,transparent 100%)}
.school-hero-photo.awi-portrait img{padding:0;object-fit:contain;object-position:center bottom}
.school-hero:has(.awi-portrait) .school-hero-copy{padding-bottom:70px}

/* Side-by-side stories keep their text clear; images reach the page edge. */
.school-story{overflow:clip;background:linear-gradient(110deg,#faf9f6 0%,#fff 75%)}
.school-story.soft-surface{background:linear-gradient(110deg,#f1eee7 0%,#faf9f6 100%)}
.story-grid{gap:70px}
.story-grid figure{width:calc(100% + var(--page-gutter) + 35px);margin-left:calc(-1 * var(--page-gutter));mask-image:linear-gradient(90deg,#000 0%,#000 73%,transparent 100%)}
.story-grid figure img{display:block;height:580px;border-radius:0;object-fit:cover}
.story-grid.reverse>figure{margin-left:-35px;mask-image:linear-gradient(90deg,transparent 0%,#000 27%,#000 100%)}
.story-grid.reverse figure img{border-radius:0}
.school-card{background:linear-gradient(140deg,#fff,#f8f6f1);border:0;box-shadow:none;border-radius:0}
.school-card>img{display:block;mask-image:linear-gradient(#000 0%,#000 72%,transparent 100%)}
.school-card>div{padding-top:10px}
.personal-quote{background:radial-gradient(ellipse at 50% 50%,#f4f0e6,#fff 75%)}

.editorial-section{overflow:clip;background:linear-gradient(100deg,#fff 45%,#f5f2eb 100%)}
.editorial-section.alternate{background:linear-gradient(110deg,#f7f5f0 30%,#eeebe4 100%)}
.editorial aside:has(>img){width:calc(100% + var(--page-gutter));mask-image:linear-gradient(90deg,transparent 0%,#000 25%,#000 100%)}
.editorial aside img{display:block;border-radius:0;min-height:430px;max-height:650px;object-position:center}
.location-section{overflow:clip;background:linear-gradient(110deg,#eeeae1,#faf9f6 65%,#fff)}
.location-section .split>div:has(>img){width:calc(100% + var(--page-gutter) + 25px);margin-left:calc(-1 * var(--page-gutter));mask-image:linear-gradient(90deg,#000 0%,#000 72%,transparent 100%)}
.location-section img{display:block;height:500px;border-radius:0}
.education-page .edu-photo{border-radius:0;mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 100%)}
.education-page .edu-wide{border-radius:0;mask-image:linear-gradient(#000 0%,#000 78%,transparent 100%)}

/* A deliberate rhythm of charcoal and ivory, rather than a run of pale panels. */
.band-dark,.editorial-section.band-dark,.editorial-section.band-dark.alternate,
.school-story.soft-surface,.story-film,.closing,.education-page .edu-hero{
 background:radial-gradient(ellipse at 85% 25%,#414347 0%,#303338 46%,#25282d 100%);
 color:#f7f6f2;--muted:#d0cfcc;--line:#ffffff2b;
}
.band-dark h2,.school-story.soft-surface h2,.story-film h2,.closing h2,.education-page .edu-hero h1{color:#f7f6f2}
.band-dark h2 em,.school-story.soft-surface h2 em,.story-film h2 em,.closing h2 em,.education-page .edu-hero h1 em{color:var(--gold)}
.band-dark .editorial-copy p,.band-dark .editorial-copy li,
.school-story.soft-surface .story-copy p:not(.eyebrow),.story-film p:not(.eyebrow),.closing p,.education-page .edu-hero p:not(.eyebrow){color:#d8d8d5}
.band-dark .eyebrow,.school-story.soft-surface .eyebrow,.story-film .eyebrow,.closing .eyebrow,.education-page .edu-hero .eyebrow{color:var(--gold)}
.band-dark .text-link,.band-dark .editorial-copy a,.school-story.soft-surface .text-link,.story-film .text-link{color:var(--gold)}
.closing .visit-steps{border-color:#ffffff29}
.closing .visit-steps h3{color:#f5f3ed}
.band-dark .btn.outline,.education-page .edu-hero .btn.outline{color:#f7f6f2;border-color:#c5af8080;background:transparent}
.editorial-section{padding-block:84px}
.editorial-section:has(.editorial-photo) .editorial{align-items:center}
.editorial aside.editorial-photo{position:relative;top:auto;width:calc(100% + var(--page-gutter));mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 100%)}
.editorial aside.editorial-photo img{width:100%;height:520px;min-height:0;max-height:none;object-fit:cover}
.band-dark .editorial-copy strong{color:#fff}
.story-film .story-video{box-shadow:0 20px 55px #0003}

/* Social links remain ordinary, accessible links, without external embeds. */
.footer-social{display:flex;flex-wrap:wrap;gap:14px 24px;margin-top:24px}
.footer-social a{display:inline-flex;align-items:center;gap:8px;color:var(--gold);text-decoration:none;font-size:16px}
.footer-social a:hover{color:#fff}
.footer-social svg{width:19px;height:19px;fill:currentColor;flex:none}

.closing>div>p:not(.eyebrow),.closing .visit-steps p{color:#d8d8d5}
.footer-social{gap:12px;margin-top:20px;margin-bottom:12px}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:50%;color:var(--gold);transition:color .2s,background .2s,transform .2s}
.footer-social a:hover{color:#fff;background:#ffffff0b;transform:translateY(-2px)}
.footer-social a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.footer-social svg{width:25px;height:25px}
@media(prefers-reduced-motion:reduce){.footer-social a{transition:none}.footer-social a:hover{transform:none}}

@media(max-width:1100px){
 :root{--page-gutter:32px}
 .teacher-layout,.school-hero-grid{gap:38px}
 .teacher-image img{height:570px}
 .story-grid{gap:46px}
 .school-hero-grid{min-height:470px}
 .school-hero-photo.awi-portrait{height:550px}
}
@media(max-width:760px){
 :root{--page-gutter:20px}
 .program-panels{gap:24px}
 .program-panel{min-height:590px;align-items:end;border-radius:0}
 .program-panel>img{height:69%;object-position:65% 30%}
 .program-panel .panel-shade{background:linear-gradient(0deg,#25282d 0%,#25282d 26%,#25282de8 39%,#25282d6b 58%,transparent 82%)}
 .program-panel .panel-copy{padding:36px 24px;max-width:100%}
 .teacher-section{padding-top:64px;background:radial-gradient(ellipse at 55% 78%,#55554f,#25282d 76%)}
 .teacher-layout{display:flex;flex-direction:column;gap:10px}
 .teacher-layout>div:last-child{order:1;padding:24px 0 56px}
 .teacher-image{order:0;align-self:center;max-width:440px}
 .teacher-image img{height:480px;max-height:125vw}
 .school-hero{padding-block:0 56px;background:#f6f4ef}
 .school-hero-grid{display:flex;flex-direction:column;gap:0;min-height:0}
 .school-hero-copy{order:1;margin-top:-3px}
 .school-hero-copy h1{font-size:clamp(38px,9vw,48px)}
 .school-hero:not(:has(.awi-portrait)) .school-hero-photo{order:0;position:relative;inset:auto;width:calc(100% + 40px);height:340px;flex:none;margin-inline:-20px;mask-image:linear-gradient(#000 0%,#000 57%,transparent 100%)}
 .school-hero:not(:has(.awi-portrait)) .school-hero-photo img{object-position:center}
 .school-hero:has(.awi-portrait){padding-top:45px;background:radial-gradient(ellipse at 55% 65%,#e0d9ca,#faf9f6 80%)}
 .school-hero:has(.awi-portrait) .school-hero-copy{order:0;padding-bottom:15px}
 .school-hero-photo.awi-portrait{order:1;height:450px;width:100%;max-width:440px}
 .story-grid,.story-grid.reverse{display:flex;flex-direction:column;gap:18px}
 .story-grid figure,.story-grid.reverse>figure{order:0;position:static;width:calc(100% + 40px);margin:0 -20px;mask-image:linear-gradient(#000 0%,#000 65%,transparent 100%)}
 .story-grid figure img,.story-grid.reverse figure img{height:350px;border-radius:0}
 .story-grid .story-copy{order:1}
 .school-story{padding-top:0}
 .school-card>img{height:280px}
 .editorial aside:has(>img){width:calc(100% + 40px);margin-inline:-20px;mask-image:linear-gradient(#000 0%,#000 68%,transparent 100%)}
 .editorial aside img{min-height:0;max-height:430px}
 .editorial-section{padding-block:58px}
 .editorial aside.editorial-photo{width:calc(100% + 40px);margin-inline:-20px;mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%)}
 .editorial aside.editorial-photo img{height:360px;max-height:none;object-fit:cover}
 .location-section .split>div:has(>img){width:calc(100% + 40px);margin-inline:-20px;mask-image:linear-gradient(#000 0%,#000 65%,transparent 100%)}
 .location-section img{height:330px}
 .education-page .edu-photo{mask-image:linear-gradient(#000 0%,#000 75%,transparent 100%)}

}

/* Clear section boundaries; photos span their own band and fade only sideways. */
.training-facts{background:#202327;padding-block:38px;border:0}
.training-facts span{display:block;color:#e3e0d9;font-size:17px;letter-spacing:.04em}
.training-facts p{color:var(--gold);font-size:clamp(25px,2.4vw,32px);font-weight:600;line-height:1.3;margin-top:8px}
.program-panel>img{mask-image:none}
@media(min-width:761px){
 .editorial-section:has(.editorial-photo){position:relative;isolation:isolate;min-height:560px}
 .editorial-section:has(.editorial-photo) .editorial{display:block}
 .editorial-section:has(.editorial-photo) .editorial-copy{position:relative;z-index:1;width:52%}
 .editorial-section .editorial aside.editorial-photo{position:absolute;inset:0 0 0 auto;width:48%;height:100%;margin:0;mask-image:linear-gradient(90deg,transparent 0%,#000 26%,#000 100%);z-index:0}
 .editorial-section .editorial aside.editorial-photo img{width:100%;height:100%;min-height:0;max-height:none;object-fit:cover}
 .school-story:has(.story-grid figure){position:relative;isolation:isolate;min-height:620px}
 .school-story .story-grid{display:block}
 .school-story .story-copy{position:relative;z-index:1;width:49%;margin-left:auto}
 .school-story .story-grid.reverse .story-copy{margin-left:0}
 .school-story .story-grid figure{position:absolute;inset:0 auto 0 0;width:49%;height:100%;margin:0;mask-image:linear-gradient(90deg,#000 0%,#000 74%,transparent 100%);z-index:0}
 .school-story .story-grid.reverse>figure{inset:0 0 0 auto;margin:0;mask-image:linear-gradient(90deg,transparent 0%,#000 26%,#000 100%)}
 .school-story .story-grid figure img{height:100%;width:100%;object-fit:cover}
 .location-section{position:relative;isolation:isolate;min-height:550px}
 .location-section .split{display:block}
 .location-section .split>div:has(>img){position:absolute;inset:0 auto 0 0;width:49%;height:100%;margin:0;mask-image:linear-gradient(90deg,#000 0%,#000 74%,transparent 100%)}
 .location-section img{height:100%;width:100%;object-fit:cover}
 .location-section .split>div:not(:has(>img)){position:relative;z-index:1;width:49%;margin-left:auto}
}
@media(max-width:760px){
 .training-facts{padding-block:30px}
 .training-facts span{font-size:16px}
 .training-facts p{font-size:25px}
 .program-panel>img{height:100%}
}

/* Fine gold plus/minus indicators for both navigation menus. */
.nav-group>summary::after{content:"";display:block;flex:0 0 11px;width:11px;height:11px;margin-left:2px;opacity:.9;transform:none;background:linear-gradient(var(--gold),var(--gold)) center/11px 1px no-repeat,linear-gradient(var(--gold),var(--gold)) center/1px 11px no-repeat;transition:background-size .18s ease}
.nav-group[open]>summary::after{transform:none;background-size:11px 1px,1px 0}
.nav-group>summary:focus-visible{outline:2px solid var(--gold);outline-offset:5px;border-radius:3px}
@media(prefers-reduced-motion:reduce){.nav-group>summary::after{transition:none}}

/* Long school stories must not inherit the legacy 640px image limit. */
@media(min-width:761px){
 .school-story:has(.story-copy p:nth-child(9)) .story-grid figure img{height:100%;max-height:none;object-fit:cover}
 .school-story .story-grid figure img[src$="photo-71931f9b71.webp"]{object-position:left center}
}
@media(max-width:760px){
 .school-story .story-grid figure:has(img[src$="photo-71931f9b71.webp"]){mask-image:none}
 .school-story:has(.story-copy p:nth-child(9)) .story-grid figure img[src$="photo-71931f9b71.webp"]{height:auto;max-height:none}
}

/* Approved ivory hanji paper: only the light content surfaces. */
body{background:#f6f4ef url('/assets/hanji-paper.webp') center top/1200px auto repeat}
:is(main > section,.education-page > section)[data-paper]{position:relative;isolation:isolate;overflow:clip;background:#f6f4ef}
[data-paper]::before{content:"";position:absolute;inset:-220px 0;z-index:-1;pointer-events:none;background:url('/assets/hanji-paper.webp') center center/1200px auto repeat;opacity:.82;transform:translate3d(0,var(--paper-shift,0px),0)}
@media(max-width:760px){[data-paper]::before{background-size:900px auto}}
@media(prefers-reduced-motion:reduce){[data-paper]::before{transform:none}}
